From 4d2fcaba7fb8eb1723943ac9a10e76d509330bd1 Mon Sep 17 00:00:00 2001 From: Jonathan Dixon Date: Fri, 24 Feb 2012 00:13:06 +0000 Subject: Fixup browser to use WebView proxy Has to escape out to WebViewClassic whenever it needs a hidden API. Interdepends on https://android-git.corp.google.com/g/165608 Change-Id: Ic61dd7f57f75381864075605d5901f2688648cbd --- src/com/android/browser/PreloadedTabControl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/com/android/browser/PreloadedTabControl.java') diff --git a/src/com/android/browser/PreloadedTabControl.java b/src/com/android/browser/PreloadedTabControl.java index 4ffe6b4..0b2956f 100644 --- a/src/com/android/browser/PreloadedTabControl.java +++ b/src/com/android/browser/PreloadedTabControl.java @@ -62,12 +62,12 @@ public class PreloadedTabControl { } public void setQuery(String query) { - maybeSetQuery(query, mTab.getWebView().getSearchBox()); + maybeSetQuery(query, mTab.getWebViewClassic().getSearchBox()); } public boolean searchBoxSubmit(final String query, final String fallbackUrl, final Map fallbackHeaders) { - final SearchBox sb = mTab.getWebView().getSearchBox(); + final SearchBox sb = mTab.getWebViewClassic().getSearchBox(); if (sb == null) { // no searchbox, cannot submit. Fallback to regular tab creation if (LOGD_ENABLED) Log.d(LOGTAG, "No searchbox, cannot submit query"); @@ -106,7 +106,7 @@ public class PreloadedTabControl { } public void searchBoxCancel() { - SearchBox sb = mTab.getWebView().getSearchBox(); + SearchBox sb = mTab.getWebViewClassic().getSearchBox(); if (sb != null) { mLastQuery = null; sb.oncancel(new SearchBox.SearchBoxListener(){ -- cgit v1.1