diff options
author | Huahui Wu <hwu@google.com> | 2011-07-26 13:22:33 -0700 |
---|---|---|
committer | Huahui Wu <hwu@google.com> | 2011-07-26 13:22:33 -0700 |
commit | c1ac537c5cb14576b0899572d99aaa93a771cb35 (patch) | |
tree | d357e7bb588c00ad7a06a8179915c0bfbbc60217 | |
parent | 7e800c4bc958cd0d7f398f5467ba9bfac706d5c1 (diff) | |
download | packages_apps_Browser-c1ac537c5cb14576b0899572d99aaa93a771cb35.zip packages_apps_Browser-c1ac537c5cb14576b0899572d99aaa93a771cb35.tar.gz packages_apps_Browser-c1ac537c5cb14576b0899572d99aaa93a771cb35.tar.bz2 |
b/5080166 support multi-touch on external touchscreen.
Change-Id: I4a9b747a1c3c4f98268dc735e800c9c509d5d392
-rw-r--r-- | src/com/android/browser/BrowserWebViewFactory.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/browser/BrowserWebViewFactory.java b/src/com/android/browser/BrowserWebViewFactory.java index fbd26a9..4410512 100644 --- a/src/com/android/browser/BrowserWebViewFactory.java +++ b/src/com/android/browser/BrowserWebViewFactory.java @@ -55,8 +55,10 @@ public class BrowserWebViewFactory implements WebViewFactory { w.setMapTrackballToArrowKeys(false); // use trackball directly // Enable the built-in zoom w.getSettings().setBuiltInZoomControls(true); - boolean supportsMultiTouch = mContext.getPackageManager() - .hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH); + final PackageManager pm = mContext.getPackageManager(); + boolean supportsMultiTouch = + pm.hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH) + || pm.hasSystemFeature(PackageManager.FEATURE_FAKETOUCH_MULTITOUCH_DISTINCT); w.getSettings().setDisplayZoomControls(!supportsMultiTouch); w.setExpandedTileBounds(true); // smoother scrolling |