commit | 14410b0aed464d0f3922436dd2be116871dc3029 | [log] [tgz] |
---|---|---|
author | Adrian Roos <roosa@google.com> | Wed Jun 10 13:35:41 2015 -0700 |
committer | Adrian Roos <roosa@google.com> | Wed Jun 10 14:06:12 2015 -0700 |
tree | 2cc1392c2e25ee071f46d293685b382fba0e4025 | |
parent | 27b96cc7380655a2e20a981592ec6ded23a2389c [diff] [blame] |
Hide keyguard bottom area from a11y when alpha is zero Bug: 20535583 Bug: 20343910 Change-Id: I1557e3b1acd8cab028673bbcb7cd54b068c4b48a
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java index 9e1af82..45c0b75 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
@@ -1720,8 +1720,11 @@ } private void updateKeyguardBottomAreaAlpha() { - mKeyguardBottomArea.setAlpha( - Math.min(getKeyguardContentsAlpha(), 1 - getQsExpansionFraction())); + float alpha = Math.min(getKeyguardContentsAlpha(), 1 - getQsExpansionFraction()); + mKeyguardBottomArea.setAlpha(alpha); + mKeyguardBottomArea.setImportantForAccessibility(alpha == 0f + ? IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS + : IMPORTANT_FOR_ACCESSIBILITY_AUTO); } private float getNotificationsTopY() {