Focus empty to/subject/text

This commit is contained in:
M66B 2018-11-21 08:11:15 +01:00
parent 285016124e
commit a4c623faaa
1 changed files with 6 additions and 1 deletions

View File

@ -1328,7 +1328,12 @@ public class FragmentCompose extends FragmentEx {
new Handler().post(new Runnable() {
@Override
public void run() {
etTo.requestFocus();
if (TextUtils.isEmpty(etTo.getText()))
etTo.requestFocus();
else if (TextUtils.isEmpty(etSubject.getText()))
etSubject.requestFocus();
else
etBody.requestFocus();
}
});
}