summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/browser/InstantSearchEngine.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/browser/InstantSearchEngine.java b/src/com/android/browser/InstantSearchEngine.java
index 128997c..b4ccfa5 100644
--- a/src/com/android/browser/InstantSearchEngine.java
+++ b/src/com/android/browser/InstantSearchEngine.java
@@ -81,7 +81,7 @@ public class InstantSearchEngine implements SearchEngine, DropdownChangeListener
// If for some reason we are in a bad state, ensure that the
// user gets default search results at the very least.
- if (mSearchBox == null & !isInstantPage()) {
+ if (mSearchBox == null || !isInstantPage()) {
mWrapped.startSearch(context, query, appData, extraData);
return;
}
@@ -238,6 +238,10 @@ public class InstantSearchEngine implements SearchEngine, DropdownChangeListener
mController.registerDropdownChangeListener(this);
+ if (mSearchBox == null) {
+ return mWrapped.getSuggestions(context, query);
+ }
+
mSearchBox.setDimensions(0, 0, 0, mHeight);
mSearchBox.onresize();