mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 08:08:16 +02:00
Clear focus on restoring search
This will keep the keyboard collapsed, preventing lists not drawing
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user