From 7b5522d011abac0573f333182acfb20b816f24cc Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 29 Sep 2019 18:19:30 +0200 Subject: [PATCH] Request focus on show/hide CC/BCC --- .../main/java/eu/faircode/email/FragmentCompose.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 865d9ad4d1..bb85f6b3d0 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -965,6 +965,16 @@ public class FragmentCompose extends FragmentBase { private void onMenuAddresses() { grpAddresses.setVisibility(grpAddresses.getVisibility() == View.GONE ? View.VISIBLE : View.GONE); + + new Handler().post(new Runnable() { + @Override + public void run() { + if (grpAddresses.getVisibility() == View.GONE) + etSubject.requestFocus(); + else + etCc.requestFocus(); + } + }); } private void onMenuZoom() {