OSDN Git Service

[Notif] Fix a11y when guts is open
authorRohan Shah <shahrk@google.com>
Fri, 11 May 2018 04:49:04 +0000 (21:49 -0700)
committerRohan Shah <shahrk@google.com>
Fri, 11 May 2018 17:33:06 +0000 (10:33 -0700)
commit56eb09158fdd1b8d9b5fe6718324abbc6555108a
tree6d3053153a04535311620b41f292b60d2a136ab1
parent47a8ecce90716d534781e2e39e0a44c03cc422e0
[Notif] Fix a11y when guts is open

The content in the back is showing while guts is up since we never make
the content invisible. To avoid making a semi-risky change before the
GAR cutoff, we're listening to guts open/close and toggling the content
views' important for accessibility values.

After guts is closed, this will also re-focus the notification that the
user had long-pressed instead of leaving them without a target/making
them lose track.

Fixes: 75284298
Test: Manually with single and group notif
Change-Id: I57c3ac27e0c134ce04b681717b185eceba19a7a8
packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
packages/SystemUI/src/com/android/systemui/statusbar/NotificationGutsManager.java