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
This commit is contained in:
Mady Mellor
2015-06-24 17:27:21 -07:00
parent d2c4145732
commit 011a42dee7

View File

@@ -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()) {