diff --git a/core/java/android/widget/Editor.java b/core/java/android/widget/Editor.java index f2f455702f5db..f4a8639d3bce7 100644 --- a/core/java/android/widget/Editor.java +++ b/core/java/android/widget/Editor.java @@ -1637,6 +1637,10 @@ public class Editor { mSelectionModifierCursorController.resetTouchOffsets(); } + if (mInsertModeController != null) { + mInsertModeController.exitInsertMode(); + } + ensureNoSelectionIfNonSelectable(); } }