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:
parent
79563c66ac
commit
97e9f99f61
1 changed files with 2 additions and 12 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue