OSDN Git Service

Fix crash with a11y set text with text filters.
authorPhil Weaver <pweaver@google.com>
Wed, 27 Apr 2016 00:01:29 +0000 (17:01 -0700)
committerPhil Weaver <pweaver@google.com>
Wed, 27 Apr 2016 00:01:29 +0000 (17:01 -0700)
commit6dde7e75e88420a89c09b303417593590e6ad6d5
tree5bad3e86ecca942a953e145d6bccabdf654d4612
parentb1dea03f0a72923793895048e1a5aac0d4e485c5
Fix crash with a11y set text with text filters.

A text filter may shorten the text, so we need to use the text
that's actually in the View, not the text we requested, to move
the selection.

Also removing the override of performAccessibilityActionInternal,
which should have been done as part of adding text actions initially.

Bug: 28253708
Change-Id: I184f49dcba0238f4ccc222597cefca258393b263
core/java/android/widget/EditText.java
core/java/android/widget/TextView.java