OSDN Git Service

Fix QS wifi accessibility announcements
authorJason Monk <jmonk@google.com>
Tue, 20 Jun 2017 17:16:05 +0000 (13:16 -0400)
committerJason Monk <jmonk@google.com>
Tue, 20 Jun 2017 17:16:05 +0000 (13:16 -0400)
commit90950d998cffa25ba0c01e503c9dc6616230dabd
treef8d77149933df5952fec8e6537d11ce5b42036aa
parente139434e3ab235fde6a5d17b9128e5665db32115
Fix QS wifi accessibility announcements

The state was being inverted in events to try to get clicks correct,
but events can occur at other times, so really we want to invert
the state between when the click happens and when the next state
change occurs. Also add a toString to fix equals checks on the content
description to make the announcements less noisy.

Test: manual
Change-Id: Ie4159664e9a81fd1719dbf7c06fba5e7b827cc6d
Fixes: 62679498
packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileBaseView.java
packages/SystemUI/src/com/android/systemui/qs/tiles/WifiTile.java