Moving focus on text should not create an Editor
Bug 6241159.
onCreateInputConnection should not create an Editor but instead
should return an input connection iff the text is editable.
Change-Id: Ie9ea55b2467f5a40e6243b36f9b44fa6dfab586f
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java
index 1f2410b..f99f42a 100644
--- a/core/java/android/widget/TextView.java
+++ b/core/java/android/widget/TextView.java
@@ -5251,7 +5251,6 @@
@Override
public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
- createEditorIfNeeded("onCreateInputConnection");
if (onCheckIsTextEditor() && isEnabled()) {
if (getEditor().mInputMethodState == null) {
getEditor().mInputMethodState = new InputMethodState();