summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorGrace Kloba <klobag@google.com>2010-03-19 18:40:09 -0700
committerGrace Kloba <klobag@google.com>2010-03-19 18:40:09 -0700
commit140b33aa6f3edbb95963d7b594edeec4673ab124 (patch)
treea0157d35f1ff6ee89f09ad2eefdb10d7d1db72ef /src/com/android
parent80380ed1b6b1cd59b5da7474202963f87ec32ab8 (diff)
downloadpackages_apps_Browser-140b33aa6f3edbb95963d7b594edeec4673ab124.zip
packages_apps_Browser-140b33aa6f3edbb95963d7b594edeec4673ab124.tar.gz
packages_apps_Browser-140b33aa6f3edbb95963d7b594edeec4673ab124.tar.bz2
Enable +/- zoom control for the sub-window.
This should also enable the pinch zoom Fix http://b/issue?id=2530401
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/browser/Tab.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/browser/Tab.java b/src/com/android/browser/Tab.java
index 8cbaa4d..e78fa45 100644
--- a/src/com/android/browser/Tab.java
+++ b/src/com/android/browser/Tab.java
@@ -1420,6 +1420,8 @@ class Tab {
mSubView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_OVERLAY);
// use trackball directly
mSubView.setMapTrackballToArrowKeys(false);
+ // Enable the built-in zoom
+ mSubView.getSettings().setBuiltInZoomControls(true);
mSubView.setWebViewClient(new SubWindowClient(mWebViewClient));
mSubView.setWebChromeClient(new SubWindowChromeClient(
mWebChromeClient));