Files
frameworks_base/core/java/android/widget
sallyyuen 8f223c591e Set the a11yNodeInfo unclickable if the TextView has a
LinkMovementMethod and there are no onClickListeners or
onLongClickListeners

A view with links shouldn't be exposing itself as clickable to
an a11yService if only the links are clickable. If a movement method is
set, the view turns both clickable and long-clickable. This has brought
a number of bugs where an a11yService will notify users the element is
clickable but performing the action does nothing.

We can't delete years-old code without breaking a lot of things, so try
to minimize the consequences by adding logic in onInitializeA11yNodeInfo.
Add checks so a view with links and no click listeners will be made un-clickable.

Bug: b/131758159
Test: Tested on several bugs with TalkBack, CtsAccessibilityTests, CtsTextTestCases,
CtsWidgetTestCases:TextViewTest
Change-Id: I53b695139ecea2c34d125e7077fd2077593adbe1
2019-05-28 22:56:12 +00:00
..
2019-03-18 16:05:55 -04:00
2019-02-05 17:20:21 +00:00
2019-05-10 17:48:58 -07:00
2019-02-28 18:41:26 -05:00
2019-02-28 18:41:26 -05:00
2019-02-27 16:52:33 -08:00