Skip to content

Commit 4cb85f6

Browse files
author
Gilles Debunne
committed
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
1 parent 3df92c5 commit 4cb85f6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

core/java/android/widget/TextView.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5251,7 +5251,6 @@ public boolean onCheckIsTextEditor() {
52515251

52525252
@Override
52535253
public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
5254-
createEditorIfNeeded("onCreateInputConnection");
52555254
if (onCheckIsTextEditor() && isEnabled()) {
52565255
if (getEditor().mInputMethodState == null) {
52575256
getEditor().mInputMethodState = new InputMethodState();

0 commit comments

Comments
 (0)