summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Michael Kolb <kolby@google.com> 2012-01-18 11:20:01 -0800
committer Michael Kolb <kolby@google.com> 2012-01-18 11:20:01 -0800
commit17146c7cc007c21b3ec36f8dec76aded15e7a53f (patch)
tree904d4fb65aa279527abaa74739b182e309a2e204
parent01cc1d1e8c917ef2e63f0bd3ac38232d41820ad0 (diff)
Prevent IME from popping up on startup
Bug: 5869028 Change-Id: Ie5c7004def16eeac4147d19fb00fc9631a17579e
-rw-r--r--core/java/android/webkit/WebView.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index 770f8ac7ba3e..ff05a8725811 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -422,7 +422,7 @@ public class WebView extends AbsoluteLayout
private final Rect mViewRectViewport = new Rect();
private final RectF mVisibleContentRect = new RectF();
private boolean mGLViewportEmpty = false;
- WebViewInputConnection mInputConnection = new WebViewInputConnection();
+ WebViewInputConnection mInputConnection = null;
/**
@@ -4947,15 +4947,13 @@ public class WebView extends AbsoluteLayout
}
@Override
- public boolean onCheckIsTextEditor() {
- return true;
- }
-
- @Override
public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
outAttrs.imeOptions = EditorInfo.IME_FLAG_NO_FULLSCREEN
| EditorInfo.TYPE_CLASS_TEXT
| EditorInfo.TYPE_TEXT_VARIATION_NORMAL;
+ if (mInputConnection == null) {
+ mInputConnection = new WebViewInputConnection();
+ }
return mInputConnection;
}