Search by typing in the search view as well

This commit is contained in:
Daniel Martí 2013-07-06 14:21:59 +02:00
parent 0d099a0126
commit 5a461589a5

View File

@ -50,11 +50,15 @@ public class SearchResults extends ListActivity {
applist = new AvailableAppListAdapter(this);
setContentView(R.layout.searchresults);
// Start a search by just typing
setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL);
Intent intent = getIntent();
if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
mQuery = intent.getStringExtra(SearchManager.QUERY);
}
updateView();
}