OSDN Git Service

Make sure setting switch bar state is announced.
authorPhil Weaver <pweaver@google.com>
Tue, 30 Aug 2016 23:34:38 +0000 (16:34 -0700)
committerPhil Weaver <pweaver@google.com>
Tue, 30 Aug 2016 23:40:40 +0000 (16:40 -0700)
commit664f6dacca97281e852bbb7fd8094a329d299d9a
treee8c8dd4d86f4aeea10ad04b7d25a09c58773e2f3
parent96fb5d795fb909ec39c07b2fb258eb686186afc2
Make sure setting switch bar state is announced.

When the switch is clicked, a TYPE_VIEW_CLICKED a11y
event is produced. It works fine if the switch bar is
clicked, but if the switch itself is clicked the event
comes from the switch, which is marked as not important
for accessibility. Re-dispatching events from the switch
as coming from the switch bar makes sure that the event
comes from a view that accessibility services can see.

Bug: 30484493
Change-Id: Ie48cc78594c64b1cc5735475e1cb5959fadaaf4a
src/com/android/settings/widget/SwitchBar.java