summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/PhoneUi.java
diff options
context:
space:
mode:
authorJonathan Dixon <joth@google.com>2012-02-24 00:13:06 +0000
committerJonathan Dixon <joth@google.com>2012-03-02 11:18:30 +0000
commit4d2fcaba7fb8eb1723943ac9a10e76d509330bd1 (patch)
tree19a8905db9aa0aad4a60c1c3ef4fd7506c2089ad /src/com/android/browser/PhoneUi.java
parentf9a4c8405898fa55be50ee4b682f7e97b054a41f (diff)
downloadpackages_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/PhoneUi.java')
-rw-r--r--src/com/android/browser/PhoneUi.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/android/browser/PhoneUi.java b/src/com/android/browser/PhoneUi.java
index ee5ca40..5afb9c4 100644
--- a/src/com/android/browser/PhoneUi.java
+++ b/src/com/android/browser/PhoneUi.java
@@ -38,6 +38,7 @@ import android.view.View;
import android.view.ViewGroup;
import android.view.accessibility.AccessibilityEvent;
import android.webkit.WebView;
+import android.webkit.WebViewClassic;
import android.widget.FrameLayout;
import android.widget.ImageView;
@@ -169,7 +170,7 @@ public class PhoneUi extends BaseUi {
} else {
// check if title bar is already attached by animation
if (mTitleBar.getParent() == null) {
- view.setEmbeddedTitleBar(mTitleBar);
+ WebViewClassic.fromWebView(view).setEmbeddedTitleBar(mTitleBar);
}
}
if (tab.isInVoiceSearchMode()) {
@@ -287,7 +288,7 @@ public class PhoneUi extends BaseUi {
mPieControl.attachToContainer(mContentView);
WebView web = getWebView();
if (web != null) {
- web.setEmbeddedTitleBar(null);
+ WebViewClassic.fromWebView(web).setEmbeddedTitleBar(null);
}
} else {
if (mPieControl != null) {
@@ -299,7 +300,7 @@ public class PhoneUi extends BaseUi {
if ((mTitleBar != null) && (mTitleBar.getParent() != null)) {
((ViewGroup) mTitleBar.getParent()).removeView(mTitleBar);
}
- web.setEmbeddedTitleBar(mTitleBar);
+ WebViewClassic.fromWebView(web).setEmbeddedTitleBar(mTitleBar);
}
setTitleGravity(Gravity.NO_GRAVITY);
}