diff options
author | Adrian Roos <roosa@google.com> | 2015-04-29 13:36:12 -0700 |
---|---|---|
committer | Adrian Roos <roosa@google.com> | 2015-04-29 13:36:55 -0700 |
commit | d0b2f7ddcac251acfe88092ecef4abb63b3e248b (patch) | |
tree | 81b0e6f0027259eaf80eb751d1ac4cb607591d3f /packages | |
parent | ca067e9703ab9fcee430d13aac28d04bdc46af2a (diff) | |
download | frameworks_base-d0b2f7ddcac251acfe88092ecef4abb63b3e248b.zip frameworks_base-d0b2f7ddcac251acfe88092ecef4abb63b3e248b.tar.gz frameworks_base-d0b2f7ddcac251acfe88092ecef4abb63b3e248b.tar.bz2 |
Hide lockscreen contents from a11y while bouncer is showing
Bug: 20110598
Change-Id: Id65b44b06123dcc4625f46090d7d5c234b0ae951
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelBar.java | 8 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 1 |
2 files changed, 9 insertions, 0 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 f3d4c7f..d5209ea 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelBar.java @@ -80,6 +80,14 @@ public class PanelBar extends FrameLayout { } } + public void setBouncerShowing(boolean showing) { + if (mPanelHolder != null) { + mPanelHolder.setImportantForAccessibility( + showing ? IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS + : IMPORTANT_FOR_ACCESSIBILITY_AUTO); + } + } + public float getBarHeight() { return getMeasuredHeight(); } diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index bf85ed5..21a5145 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -3558,6 +3558,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, @Override public void setBouncerShowing(boolean bouncerShowing) { super.setBouncerShowing(bouncerShowing); + mStatusBarView.setBouncerShowing(bouncerShowing); disable(mDisabledUnmodified1, mDisabledUnmodified2, true /* animate */); } |