Revert "Keep recipient focus"

This reverts commit 4d5b7d3afa.
This commit is contained in:
M66B 2021-05-04 19:14:16 +02:00
parent 3e46a63d2f
commit 6df217e01d
1 changed files with 8 additions and 9 deletions

View File

@ -5193,15 +5193,9 @@ public class FragmentCompose extends FragmentBase {
Log.i("Loaded action id=" + draft.id +
" action=" + getActionName(action) + " encryption=" + needsEncryption);
String to = MessageHelper.formatAddressesCompose(draft.to);
String cc = MessageHelper.formatAddressesCompose(draft.cc);
String bcc = MessageHelper.formatAddressesCompose(draft.bcc);
if (!Objects.equals(etTo.getText().toString(), to))
etTo.setText(to);
if (!Objects.equals(etCc.getText().toString(), cc))
etCc.setText(cc);
if (!Objects.equals(etBcc.getText().toString(), bcc))
etBcc.setText(bcc);
etTo.setText(MessageHelper.formatAddressesCompose(draft.to));
etCc.setText(MessageHelper.formatAddressesCompose(draft.cc));
etBcc.setText(MessageHelper.formatAddressesCompose(draft.bcc));
Bundle extras = args.getBundle("extras");
boolean show = extras.getBoolean("show");
@ -5562,6 +5556,11 @@ public class FragmentCompose extends FragmentBase {
public void run() {
try {
target.requestFocus();
if (target.getId() != R.id.etSubject && target.getId() != R.id.etBody) {
EditText et = (EditText) target;
String text = et.getText().toString();
et.setSelection(text.length());
}
Context context = target.getContext();