summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorAdnan Begovic <adnan@cyngn.com>2016-05-19 15:46:43 -0700
committerAdnan Begovic <adnan@cyngn.com>2016-05-19 15:48:09 -0700
commitde47a0adc8c48a55dccdd6877231a36ab7a7b026 (patch)
tree5566b6bd55faf0abdbb16d7fecb30e10408338b9 /src/com/android
parentc05cf0a0c8e8056bc5ad74cf8a3a6830f7a4c9bc (diff)
downloadpackages_apps_Settings-de47a0adc8c48a55dccdd6877231a36ab7a7b026.zip
packages_apps_Settings-de47a0adc8c48a55dccdd6877231a36ab7a7b026.tar.gz
packages_apps_Settings-de47a0adc8c48a55dccdd6877231a36ab7a7b026.tar.bz2
Settings: Wrap invocation on search view.
Exception thrown during monkey testing. Change-Id: I2f08df1e36c386aec0d57e3b6714cdbdd0f29246 TICKET: FEIJ-677
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/settings/dashboard/SearchResultsSummary.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/settings/dashboard/SearchResultsSummary.java b/src/com/android/settings/dashboard/SearchResultsSummary.java
index ca764b3..9b1b169 100644
--- a/src/com/android/settings/dashboard/SearchResultsSummary.java
+++ b/src/com/android/settings/dashboard/SearchResultsSummary.java
@@ -236,7 +236,9 @@ public class SearchResultsSummary extends InstrumentedFragment {
mShowResults = true;
mQuery = cursor.getString(0);
- mSearchView.setQuery(mQuery, false);
+ if (mSearchView != null) {
+ mSearchView.setQuery(mQuery, false);
+ }
}
});
mSuggestionsListView.addHeaderView(