Merge "Fix bug #14323469 Settings crash on selecting keyword from recent searches ... after changing orientation"

This commit is contained in:
Fabrice Di Meglio
2014-05-13 02:39:12 +00:00
committed by Android (Google) Code Review
2 changed files with 42 additions and 3 deletions

View File

@@ -410,6 +410,10 @@ public class SettingsActivity extends Activity
return false;
}
if (mSearchResultsFragment != null) {
mSearchResultsFragment.setSearchView(mSearchView);
}
mSearchMenuItem.setOnActionExpandListener(this);
mSearchView.setOnQueryTextListener(this);
mSearchView.setOnCloseListener(this);