From 4712b8ef9e6e24e455f48e4bc74019a6b6de5656 Mon Sep 17 00:00:00 2001 From: Keisuke Kuroyanagi Date: Wed, 1 Jul 2015 20:06:51 +0900 Subject: [PATCH] Fix: Selection handles can remain on home screen. This happened as selection handles are shown even when selection action mode is not active. Bug: 22188927 Change-Id: Ifd88b91d98cc6f9b0c578e782144b6eee1bdeec9 --- core/java/android/widget/Editor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/widget/Editor.java b/core/java/android/widget/Editor.java index 84e7db44423ed..fb635b5141960 100644 --- a/core/java/android/widget/Editor.java +++ b/core/java/android/widget/Editor.java @@ -1186,7 +1186,7 @@ public class Editor { final InputMethodManager imm = InputMethodManager.peekInstance(); final boolean immFullScreen = (imm != null && imm.isFullscreenMode()); if (mSelectionModifierCursorController != null && mTextView.hasSelection() - && !immFullScreen) { + && !immFullScreen && mTextActionMode != null) { mSelectionModifierCursorController.show(); } } else {