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
Loading
Please register or sign in to comment