diff --git a/app/src/main/java/eu/faircode/email/FragmentAccounts.java b/app/src/main/java/eu/faircode/email/FragmentAccounts.java index e958d41a62..1242acc002 100644 --- a/app/src/main/java/eu/faircode/email/FragmentAccounts.java +++ b/app/src/main/java/eu/faircode/email/FragmentAccounts.java @@ -222,6 +222,7 @@ public class FragmentAccounts extends FragmentBase { if (!TextUtils.isEmpty(searching)) { menuSearch.expandActionView(); searchView.setQuery(searching, false); + searchView.clearFocus(); } searchView.setQueryHint(getString(R.string.title_search_device)); diff --git a/app/src/main/java/eu/faircode/email/FragmentContacts.java b/app/src/main/java/eu/faircode/email/FragmentContacts.java index 134327a72d..3cc5a63fae 100644 --- a/app/src/main/java/eu/faircode/email/FragmentContacts.java +++ b/app/src/main/java/eu/faircode/email/FragmentContacts.java @@ -124,6 +124,7 @@ public class FragmentContacts extends FragmentBase { if (!TextUtils.isEmpty(searching)) { menuSearch.expandActionView(); searchView.setQuery(searching, true); + searchView.clearFocus(); } searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() { diff --git a/app/src/main/java/eu/faircode/email/FragmentFolders.java b/app/src/main/java/eu/faircode/email/FragmentFolders.java index 81cc2a2ade..1cf6e4b7ac 100644 --- a/app/src/main/java/eu/faircode/email/FragmentFolders.java +++ b/app/src/main/java/eu/faircode/email/FragmentFolders.java @@ -349,6 +349,7 @@ public class FragmentFolders extends FragmentBase { if (!TextUtils.isEmpty(searching)) { menuSearch.expandActionView(); searchView.setQuery(searching, false); + searchView.clearFocus(); } searchView.setQueryHint(getString(R.string.title_search_device)); diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 8b739614b3..8e51e4619d 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -1774,6 +1774,7 @@ public class FragmentMessages extends FragmentBase { if (!TextUtils.isEmpty(searching)) { menuSearch.expandActionView(); searchView.setQuery(searching, false); + searchView.clearFocus(); } searchView.setQueryHint(getString(folder < 0 ? R.string.title_search_device : R.string.title_search_hint));