OSDN Git Service

Disabled items shouldn't also be marked as unactionable.
authorQasid Ahmad Sadiq <qasid@google.com>
Wed, 12 Jun 2019 01:58:21 +0000 (18:58 -0700)
committerQasid Ahmad Sadiq <qasid@google.com>
Wed, 12 Jun 2019 01:58:21 +0000 (18:58 -0700)
commit08de63ea45d1916ac551855b4a74a27d3462e5a6
treeed4c4ee6e4cb668a48f6d6cdda17eeb8a198ad20
parent3d87a9920e7b791ad29b1f7f63185b5a738aad7d
Disabled items shouldn't also be marked as unactionable.

Something can be clickable and disabled. Returning early here prevents that state to be reflected in ListView items.
The reported bug was happening because the items were disabled, but they weren't being reported as clickable.
Talkback doesn't read "disabled" for disabled items unless they are also actionable in certain ways.
Test: CTSAccessibility*, CTS AbsListViewTest, CTS ListViewTest, tried UI with sample app.
Fix: 131281972

Change-Id: Ic9b8c995398151f084d194e272ce082ec345e517
core/java/android/widget/AbsListView.java