From 011a42dee7c31ce781b9393e7dcdea4bd5e90384 Mon Sep 17 00:00:00 2001 From: Mady Mellor Date: Wed, 24 Jun 2015 17:27:21 -0700 Subject: Fix: Text selection handles shouldn't be shown in accessibility mode If you select some text normally while in accessibility mode, it should be cleared and handles should not show if you initiate text selection using the accessibility context menu. Bug: 22071639 Change-Id: I32b966e771ba5715a0ab370e6aa602398e5ec534 --- core/java/android/widget/TextView.java | 1 + 1 file changed, 1 insertion(+) (limited to 'core/java/android') diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index 310b4740e97e..57d0bcf563c4 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -9658,6 +9658,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener // controllers interact with how selection behaves. if (mEditor != null) { mEditor.hideCursorAndSpanControllers(); + mEditor.stopTextActionMode(); } CharSequence text = getIterableTextForAccessibility(); if (Math.min(start, end) >= 0 && Math.max(start, end) <= text.length()) { -- cgit v1.2.3