OSDN Git Service

Properly populates AccessibilityEvents for notification and quick settings shades
authorCasey Burkhardt <caseyburkhardt@google.com>
Mon, 29 Apr 2013 19:18:32 +0000 (12:18 -0700)
committerCasey Burkhardt <caseyburkhardt@google.com>
Tue, 30 Apr 2013 22:18:03 +0000 (15:18 -0700)
commit23b0a4e90554cc47f5ec1cef6b15ce0e32bb1ff2
treed6b68f575a2d6de53274c967b1d2560f36be2abc
parentf6a2598fc4a1595e9fb77bd542047a4c8006d337
Properly populates AccessibilityEvents for notification and quick settings shades

Previously, our method of announcing the expansion of the notification shade
and quick notification shade relied on populating a contentDescription
attribute on the highest-level container.  This behavior is incorrect as it
causes accessibility services to infer importance and assign the view
accessibility focus.  This change adds descriptive text to the
AccessibilityEvent fired when the shade opens without modifying the
container's description.

Bug: 8699624
Change-Id: Id909b60d63cdec96c307dea2624b0651ab4f1f36
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
packages/SystemUI/src/com/android/systemui/statusbar/phone/SettingsPanelView.java