diff options
Diffstat (limited to 'src/com/android/browser/preferences')
-rw-r--r-- | src/com/android/browser/preferences/WebViewPreview.java | 7 |
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; } |