Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 343c1eae authored by Evan Laird's avatar Evan Laird
Browse files

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
parent 6433ac13
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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) {