Hide status bar icons if showing bouncer on keyguard activity

When in a keyguard activity, we want to hide the status bar icons when
the status bar window is hidden or the bounce is showing.

Test: launch camera from keyguard, press home to show bouncer, don't see
icons
Fixes: 80107240

Change-Id: I66dd923da2b63b20fd766f8223de90f19e86b36e
This commit is contained in:
Evan Laird
2018-05-22 10:35:17 -04:00
parent 6433ac13bd
commit 343c1eae22

View File

@@ -2090,7 +2090,8 @@ public class StatusBar extends SystemUI implements DemoMode,
* @param animate should the change of the icons be animated.
*/
private void updateHideIconsForBouncer(boolean animate) {
boolean hideBecauseApp = mTopHidesStatusBar && mIsOccluded && mStatusBarWindowHidden;
boolean hideBecauseApp = mTopHidesStatusBar && mIsOccluded
&& (mStatusBarWindowHidden || mBouncerShowing);
boolean hideBecauseKeyguard = !mPanelExpanded && !mIsOccluded && mBouncerShowing;
boolean shouldHideIconsForBouncer = hideBecauseApp || hideBecauseKeyguard;
if (mHideIconsForBouncer != shouldHideIconsForBouncer) {