diff --git a/core/java/android/widget/Editor.java b/core/java/android/widget/Editor.java index 5c06638f6ad2b..e949c52fc58b1 100644 --- a/core/java/android/widget/Editor.java +++ b/core/java/android/widget/Editor.java @@ -3178,7 +3178,7 @@ public class Editor { ((Spannable) mTextView.getText()).removeSpan(mSuggestionRangeSpan); mTextView.setCursorVisible(mCursorWasVisibleBeforeSuggestions); - if (hasInsertionController()) { + if (hasInsertionController() && !extractedTextModeWillBeStarted()) { getInsertionController().show(); } } @@ -3328,6 +3328,9 @@ public class Editor { @Override public void show() { if (!(mTextView.getText() instanceof Editable)) return; + if (extractedTextModeWillBeStarted()) { + return; + } if (updateSuggestions()) { mCursorWasVisibleBeforeSuggestions = mCursorVisible;