diff options
Diffstat (limited to 'src/com/android/browser')
-rw-r--r-- | src/com/android/browser/InstantSearchEngine.java | 4 | ||||
-rw-r--r-- | src/com/android/browser/TitleBarXLarge.java | 4 | ||||
-rw-r--r-- | src/com/android/browser/XLargeUi.java | 8 |
3 files changed, 12 insertions, 4 deletions
diff --git a/src/com/android/browser/InstantSearchEngine.java b/src/com/android/browser/InstantSearchEngine.java index b4ccfa5..85e494a 100644 --- a/src/com/android/browser/InstantSearchEngine.java +++ b/src/com/android/browser/InstantSearchEngine.java @@ -15,13 +15,9 @@ */ package com.android.browser; -import com.google.android.collect.Maps; -import com.google.common.collect.Lists; - import com.android.browser.Controller; import com.android.browser.R; import com.android.browser.UI.DropdownChangeListener; -import com.android.browser.search.DefaultSearchEngine; import com.android.browser.search.SearchEngine; import android.app.SearchManager; diff --git a/src/com/android/browser/TitleBarXLarge.java b/src/com/android/browser/TitleBarXLarge.java index 8a715b1..cbe666c 100644 --- a/src/com/android/browser/TitleBarXLarge.java +++ b/src/com/android/browser/TitleBarXLarge.java @@ -396,6 +396,10 @@ public class TitleBarXLarge extends TitleBarBase return super.focusSearch(focused, dir); } + void clearCompletions() { + mUrlInput.setSuggestedText(null); + } + @Override public boolean dispatchKeyEventPreIme(KeyEvent evt) { if (evt.getKeyCode() == KeyEvent.KEYCODE_BACK) { diff --git a/src/com/android/browser/XLargeUi.java b/src/com/android/browser/XLargeUi.java index d940b50..2bcfe35 100644 --- a/src/com/android/browser/XLargeUi.java +++ b/src/com/android/browser/XLargeUi.java @@ -135,6 +135,14 @@ public class XLargeUi extends BaseUi implements ScrollListener { } @Override + public void onResume() { + super.onResume(); + if (!BrowserSettings.getInstance().useInstant()) { + mTitleBar.clearCompletions(); + } + } + + @Override public void onDestroy() { hideTitleBar(); } |