Merge "Fix: Text selection handles shouldn't be shown in accessibility mode" into mnc-dev

This commit is contained in:
Mady Mellor
2015-06-26 21:21:53 +00:00
committed by Android (Google) Code Review

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