Revert "Clear focus on restoring search"

This reverts commit 4e12c09eef.
pull/153/head
M66B 6 years ago
parent 4e12c09eef
commit 0da8783f7e

@ -222,7 +222,6 @@ 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,7 +124,6 @@ public class FragmentContacts extends FragmentBase {
if (!TextUtils.isEmpty(searching)) {
menuSearch.expandActionView();
searchView.setQuery(searching, true);
searchView.clearFocus();
}
searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {

@ -349,7 +349,6 @@ 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,7 +1774,6 @@ 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));

Loading…
Cancel
Save