1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 09:47:13 +00:00

Changed compose focus

This commit is contained in:
M66B 2018-08-22 06:38:06 +00:00
parent 79563c66ac
commit 97e9f99f61

View file

@ -210,7 +210,7 @@ public class FragmentCompose extends FragmentEx {
new Handler().post(new Runnable() {
@Override
public void run() {
etSubject.requestFocus();
etTo.requestFocus();
}
});
@ -703,6 +703,7 @@ public class FragmentCompose extends FragmentEx {
@Override
protected void onLoaded(Bundle args, Spanned body) {
etBody.setText(body);
etBody.setSelection(0);
}
}.load(FragmentCompose.this, a);
@ -714,17 +715,6 @@ public class FragmentCompose extends FragmentEx {
grpAddresses.setVisibility("reply_all".equals(action) ? View.VISIBLE : View.GONE);
grpMessage.setVisibility(View.VISIBLE);
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
if ("reply".equals(action) || "reply_all".equals(action)) {
etBody.requestFocus();
etBody.setSelection(0);
} else
etTo.requestFocus();
}
}, 0);
DB db = DB.getInstance(getContext());
db.identity().liveIdentities(true).removeObservers(getViewLifecycleOwner());