summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorAdrian Roos <roosa@google.com>2015-06-10 13:19:17 -0700
committerAdrian Roos <roosa@google.com>2015-06-10 13:59:07 -0700
commit3531a95aaa956366ff29f0b99691b82c6c3e2045 (patch)
treea9a347521c6ecf198f6edcfb8e586cb53d581c53 /packages
parentef70f8e426d3414ea9b66c07b15330631a466ed5 (diff)
downloadframeworks_base-3531a95aaa956366ff29f0b99691b82c6c3e2045.zip
frameworks_base-3531a95aaa956366ff29f0b99691b82c6c3e2045.tar.gz
frameworks_base-3531a95aaa956366ff29f0b99691b82c6c3e2045.tar.bz2
Hide StatusBarWindowView from a11y when bouncer is up
Bug: 20343910 Change-Id: Ib4c5e57f8494d980c3b2db2cd37fb478da7996eb
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelBar.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelBar.java
index 54bd3e9..552a0b2 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelBar.java
@@ -81,10 +81,13 @@ public class PanelBar extends FrameLayout {
}
public void setBouncerShowing(boolean showing) {
+ int important = showing ? IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS
+ : IMPORTANT_FOR_ACCESSIBILITY_AUTO;
+
+ setImportantForAccessibility(important);
+
if (mPanelHolder != null) {
- mPanelHolder.setImportantForAccessibility(
- showing ? IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS
- : IMPORTANT_FOR_ACCESSIBILITY_AUTO);
+ mPanelHolder.setImportantForAccessibility(important);
}
}