summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/preferences
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-09-07 16:25:50 -0700
committerJohn Reck <jreck@google.com>2011-09-07 16:25:50 -0700
commitc6f23a440d2a7fe8e3d2d5f5a049e18d788afb1e (patch)
treeab5267c1dfda1d3b5fd8aec44f36e31ffb7823ee /src/com/android/browser/preferences
parente64e369aa762f03ed22b408c3b4936a3b3c83dc2 (diff)
downloadpackages_apps_Browser-c6f23a440d2a7fe8e3d2d5f5a049e18d788afb1e.zip
packages_apps_Browser-c6f23a440d2a7fe8e3d2d5f5a049e18d788afb1e.tar.gz
packages_apps_Browser-c6f23a440d2a7fe8e3d2d5f5a049e18d788afb1e.tar.bz2
Prevent WebViewPreview from scrolling
Bug: 5265951 Change-Id: I844e1fe4f0d2cdf2376147c733e589c700d4e7be
Diffstat (limited to 'src/com/android/browser/preferences')
-rw-r--r--src/com/android/browser/preferences/WebViewPreview.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/browser/preferences/WebViewPreview.java b/src/com/android/browser/preferences/WebViewPreview.java
index 4117388..a3c19a4 100644
--- a/src/com/android/browser/preferences/WebViewPreview.java
+++ b/src/com/android/browser/preferences/WebViewPreview.java
@@ -61,7 +61,14 @@ public abstract class WebViewPreview extends Preference
protected View onCreateView(ViewGroup parent) {
View root = super.onCreateView(parent);
WebView webView = (WebView) root.findViewById(R.id.webview);
+ // Tell WebView to really, truly ignore all touch events. No, seriously,
+ // ignore them all. And don't show scrollbars.
webView.setFocusable(false);
+ webView.setFocusableInTouchMode(false);
+ webView.setClickable(false);
+ webView.setLongClickable(false);
+ webView.setHorizontalScrollBarEnabled(false);
+ webView.setVerticalScrollBarEnabled(false);
setupWebView(webView);
return root;
}