summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorGeorge Mount <mount@google.com>2012-02-02 10:18:24 -0800
committerGeorge Mount <mount@google.com>2012-02-02 10:18:24 -0800
commit71d3641d4e337e4804bb0590c8bb77ca18fdaf2d (patch)
treef82e13e1e2dd1f3698bcc6965a9b9cc8061cb979 /core/java
parent175df1156154dcb889eb36c446cabed351e873db (diff)
downloadframeworks_base-71d3641d4e337e4804bb0590c8bb77ca18fdaf2d.zip
frameworks_base-71d3641d4e337e4804bb0590c8bb77ca18fdaf2d.tar.gz
frameworks_base-71d3641d4e337e4804bb0590c8bb77ca18fdaf2d.tar.bz2
Enable webkit text entry for all fields
Change-Id: Ie0385e93ac6ebb1834277b6e6cedfee77dbb4f58
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/webkit/WebView.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index 4a42e92..a9a63b2 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -803,6 +803,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
@@ -1424,7 +1425,6 @@ public class WebView extends AbsoluteLayout
private void init() {
OnTrimMemoryListener.init(getContext());
sDisableNavcache = nativeDisableNavcache();
-
setWillNotDraw(false);
setFocusable(true);
setFocusableInTouchMode(true);
@@ -5091,6 +5091,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;