am 2b0eaffc: Merge "Hide lockscreen contents from a11y while bouncer is showing" into mnc-dev

* commit '2b0eaffc6264abb4162c089adf7089b4cfee5719':
  Hide lockscreen contents from a11y while bouncer is showing
This commit is contained in:
Adrian Roos
2015-05-05 21:18:05 +00:00
committed by Android Git Automerger
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

@@ -3579,6 +3579,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 */);
}