Changed compose focus

pull/50/head
M66B 6 years ago
parent 79563c66ac
commit 97e9f99f61

@ -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…
Cancel
Save