diff options
| author | Sally Yuen <sallyyuen@google.com> | 2022-03-30 20:20:44 +0000 |
|---|---|---|
| committer | Sally Yuen <sallyyuen@google.com> | 2022-03-30 22:12:57 +0000 |
| commit | 8021a8fb0979e5f937123e7d05263e016ff435f2 (patch) | |
| tree | fa890005e77871abb84c6030afd295bd476678a4 /core/java/android/widget/TextView.java | |
| parent | b07646b6e35357a2f2da9e0eb9f9c8fcb5b3ef2e (diff) | |
Revert "Fixes for a11y selection". Reverts hiding some selection UI
This reverts commit 55022a5880614ff6f048ab622160059a164e83b1.
Reason for revert: b/226418848
Test: builds
Change-Id: Id709d131754e14a67805ee981bc5ad0bc759121f
Diffstat (limited to 'core/java/android/widget/TextView.java')
| -rw-r--r-- | core/java/android/widget/TextView.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index 6f83a45ce7c6..0157e005725d 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -12600,7 +12600,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener if (start >= 0 && start <= end && end <= text.length()) { requestFocusOnNonEditableSelectableText(); Selection.setSelection((Spannable) text, start, end); - hideAccessibilitySelectionControllers(); + // Make sure selection mode is engaged. + if (mEditor != null) { + mEditor.startSelectionActionModeAsync(false); + } return true; } } @@ -13743,12 +13746,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener Selection.removeSelection((Spannable) text); } // Hide all selection controllers used for adjusting selection - // since we are doing so explicitly by other means and these + // since we are doing so explicitlty by other means and these // controllers interact with how selection behaves. - hideAccessibilitySelectionControllers(); - } - - private void hideAccessibilitySelectionControllers() { if (mEditor != null) { mEditor.hideCursorAndSpanControllers(); mEditor.stopTextActionMode(); |
