diff options
| author | Adrian Roos <roosa@google.com> | 2015-06-10 13:35:41 -0700 |
|---|---|---|
| committer | Adrian Roos <roosa@google.com> | 2015-06-10 14:06:12 -0700 |
| commit | 14410b0aed464d0f3922436dd2be116871dc3029 (patch) | |
| tree | 2cc1392c2e25ee071f46d293685b382fba0e4025 | |
| parent | 27b96cc7380655a2e20a981592ec6ded23a2389c (diff) | |
| download | frameworks_base-14410b0aed464d0f3922436dd2be116871dc3029.zip frameworks_base-14410b0aed464d0f3922436dd2be116871dc3029.tar.gz frameworks_base-14410b0aed464d0f3922436dd2be116871dc3029.tar.bz2 | |
Hide keyguard bottom area from a11y when alpha is zero
Bug: 20535583
Bug: 20343910
Change-Id: I1557e3b1acd8cab028673bbcb7cd54b068c4b48a
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java | 7 |
1 files changed, 5 insertions, 2 deletions
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 @@ public class NotificationPanelView extends PanelView implements } 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() { |
