diff options
author | Jonathan Dixon <joth@google.com> | 2012-02-24 00:13:06 +0000 |
---|---|---|
committer | Jonathan Dixon <joth@google.com> | 2012-03-02 11:18:30 +0000 |
commit | 4d2fcaba7fb8eb1723943ac9a10e76d509330bd1 (patch) | |
tree | 19a8905db9aa0aad4a60c1c3ef4fd7506c2089ad /src/com/android/browser/PreloadedTabControl.java | |
parent | f9a4c8405898fa55be50ee4b682f7e97b054a41f (diff) | |
download | packages_apps_Browser-4d2fcaba7fb8eb1723943ac9a10e76d509330bd1.zip packages_apps_Browser-4d2fcaba7fb8eb1723943ac9a10e76d509330bd1.tar.gz packages_apps_Browser-4d2fcaba7fb8eb1723943ac9a10e76d509330bd1.tar.bz2 |
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
Diffstat (limited to 'src/com/android/browser/PreloadedTabControl.java')
-rw-r--r-- | src/com/android/browser/PreloadedTabControl.java | 6 |
1 files changed, 3 insertions, 3 deletions
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<String, String> 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(){ |