diff options
author | George Mount <mount@google.com> | 2012-02-03 07:58:14 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-02-03 07:58:14 -0800 |
commit | 3debfa68c4bbccfd9112a0e3d2b7ad30195fbb4a (patch) | |
tree | aacd51ece928f326a90593e58a51f642755d09af /core/java | |
parent | 60da2fc8c03e5c9b57f13fa7316375d14974d5a9 (diff) | |
parent | 71d3641d4e337e4804bb0590c8bb77ca18fdaf2d (diff) | |
download | frameworks_base-3debfa68c4bbccfd9112a0e3d2b7ad30195fbb4a.zip frameworks_base-3debfa68c4bbccfd9112a0e3d2b7ad30195fbb4a.tar.gz frameworks_base-3debfa68c4bbccfd9112a0e3d2b7ad30195fbb4a.tar.bz2 |
Merge "Enable webkit text entry for all fields"
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/webkit/WebView.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 9efd8c1..dcddd47 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -844,6 +844,7 @@ public class WebView extends AbsoluteLayout static final int HANDLE_ID_EXTENT = 3; static boolean sDisableNavcache = false; + static boolean sEnableWebTextView = false; // the color used to highlight the touch rectangles static final int HIGHLIGHT_COLOR = 0x6633b5e5; // the region indicating where the user touched on the screen @@ -1465,7 +1466,6 @@ public class WebView extends AbsoluteLayout private void init() { OnTrimMemoryListener.init(getContext()); sDisableNavcache = nativeDisableNavcache(); - setWillNotDraw(false); setFocusable(true); setFocusableInTouchMode(true); @@ -5132,6 +5132,9 @@ public class WebView extends AbsoluteLayout * multiline, and what text it contains. It also removes it if necessary. */ /* package */ void rebuildWebTextView() { + if (!sEnableWebTextView) { + return; // always use WebKit's text entry + } // If the WebView does not have focus, do nothing until it gains focus. if (!hasFocus() && (null == mWebTextView || !mWebTextView.hasFocus())) { return; |