Hide lockscreen contents from a11y while bouncer is showing

Bug: 20110598
Change-Id: Id65b44b06123dcc4625f46090d7d5c234b0ae951
This commit is contained in:
Adrian Roos
2015-04-29 13:36:12 -07:00
parent ca067e9703
commit d0b2f7ddca
2 changed files with 9 additions and 0 deletions

View File

@@ -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();
}

View File

@@ -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 */);
}