Fix issue #498 - Keep searched word in search field

maths
Thomas 2 years ago
parent 43781d1618
commit 03f0ac4be3

@ -122,6 +122,9 @@ public class SearchResultTabActivity extends BaseActivity {
inflater.inflate(R.menu.menu_search, menu);
SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);
SearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView();
if (search != null) {
searchView.setQuery(search, false);
}
searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));
searchView.setIconifiedByDefault(false);
searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {

Loading…
Cancel
Save