From 4cb85f6ad6f6ff4428aa2c5179b6d62741be7aa9 Mon Sep 17 00:00:00 2001 From: Gilles Debunne Date: Tue, 27 Mar 2012 18:12:12 -0700 Subject: [PATCH] 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 --- core/java/android/widget/TextView.java | 1 - 1 file changed, 1 deletion(-) diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index 1f2410bf3c04e..f99f42a2733d0 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -5251,7 +5251,6 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener @Override public InputConnection onCreateInputConnection(EditorInfo outAttrs) { - createEditorIfNeeded("onCreateInputConnection"); if (onCheckIsTextEditor() && isEnabled()) { if (getEditor().mInputMethodState == null) { getEditor().mInputMethodState = new InputMethodState();