diff options
Diffstat (limited to 'src/com/android/browser/PreloadedTabControl.java')
-rw-r--r-- | src/com/android/browser/PreloadedTabControl.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/com/android/browser/PreloadedTabControl.java b/src/com/android/browser/PreloadedTabControl.java index 824c00b..ed066f2 100644 --- a/src/com/android/browser/PreloadedTabControl.java +++ b/src/com/android/browser/PreloadedTabControl.java @@ -89,6 +89,19 @@ public class PreloadedTabControl { return true; } + public void searchBoxCancel() { + SearchBox sb = mTab.getWebView().getSearchBox(); + if (sb != null) { + mLastQuery = null; + sb.oncancel(new SearchBox.SearchBoxListener(){ + @Override + public void onCancelComplete(boolean called) { + if (LOGD_ENABLED) Log.d(LOGTAG, "Query cancelled: " + called); + } + }); + } + } + public void loadUrlIfChanged(String url, Map<String, String> headers) { String currentUrl = mTab.getUrl(); if (!TextUtils.isEmpty(currentUrl)) { |