Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
794ae4c5da
1 changed files with 7 additions and 1 deletions
|
@ -245,6 +245,9 @@ public class VideoItemListActivity extends AppCompatActivity
|
||||||
// the support version on SearchView, so it needs to be set programmatically.
|
// the support version on SearchView, so it needs to be set programmatically.
|
||||||
searchView.setIconifiedByDefault(false);
|
searchView.setIconifiedByDefault(false);
|
||||||
searchView.setIconified(false);
|
searchView.setIconified(false);
|
||||||
|
if(!searchQuery.isEmpty()) {
|
||||||
|
searchView.setQuery(searchQuery,false);
|
||||||
|
}
|
||||||
searchView.setOnQueryTextListener(new SearchVideoQueryListener());
|
searchView.setOnQueryTextListener(new SearchVideoQueryListener());
|
||||||
suggestionListAdapter = new SuggestionListAdapter(this);
|
suggestionListAdapter = new SuggestionListAdapter(this);
|
||||||
searchView.setSuggestionsAdapter(suggestionListAdapter);
|
searchView.setSuggestionsAdapter(suggestionListAdapter);
|
||||||
|
@ -321,7 +324,10 @@ public class VideoItemListActivity extends AppCompatActivity
|
||||||
suggestionListAdapter = new SuggestionListAdapter(this);
|
suggestionListAdapter = new SuggestionListAdapter(this);
|
||||||
searchView.setSuggestionsAdapter(suggestionListAdapter);
|
searchView.setSuggestionsAdapter(suggestionListAdapter);
|
||||||
searchView.setOnSuggestionListener(new SearchSuggestionListener(searchView));
|
searchView.setOnSuggestionListener(new SearchSuggestionListener(searchView));
|
||||||
|
if(!searchQuery.isEmpty()) {
|
||||||
|
searchView.setQuery(searchQuery,false);
|
||||||
|
searchView.setIconifiedByDefault(false);
|
||||||
|
}
|
||||||
} else if (videoFragment != null){
|
} else if (videoFragment != null){
|
||||||
videoFragment.onCreateOptionsMenu(menu, inflater);
|
videoFragment.onCreateOptionsMenu(menu, inflater);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue