commit | 2b0eaffc6264abb4162c089adf7089b4cfee5719 | [log] [tgz] |
---|---|---|
author | Adrian Roos <roosa@google.com> | Tue May 05 21:05:33 2015 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Tue May 05 21:05:36 2015 +0000 |
tree | f26b4248339924eae992f37ce154f8d29bb35723 | |
parent | 5be4d295c08614eaf8afd012f90e5c7726bc293e [diff] | |
parent | d0b2f7ddcac251acfe88092ecef4abb63b3e248b [diff] |
Merge "Hide lockscreen contents from a11y while bouncer is showing" into mnc-dev
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 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 1c46d42..a1d66d4 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
@@ -3579,6 +3579,7 @@ @Override public void setBouncerShowing(boolean bouncerShowing) { super.setBouncerShowing(bouncerShowing); + mStatusBarView.setBouncerShowing(bouncerShowing); disable(mDisabledUnmodified1, mDisabledUnmodified2, true /* animate */); }