OSDN Git Service

Check mStatusBarWindowHidden bit when deciding to hide status bar
authorEvan Laird <evanlaird@google.com>
Tue, 15 May 2018 21:32:15 +0000 (17:32 -0400)
committerEvan Laird <evanlaird@google.com>
Tue, 15 May 2018 21:32:15 +0000 (17:32 -0400)
Ensures that we unhide status bar icons when (for instance), showing the
status bar in the camera from the keyguard

Change-Id: Ica1b622dd9e0a913575664b98825bc67809e5e72
Fixes: 79511463
Bug: 79700037 (possibly related)
Test: launch camera from keyguard, swipe status bar down, see icons

packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java

index 65cb56c..bb53e14 100644 (file)
@@ -2081,7 +2081,7 @@ 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;
+        boolean hideBecauseApp = mTopHidesStatusBar && mIsOccluded && mStatusBarWindowHidden;
         boolean hideBecauseKeyguard = !mPanelExpanded && !mIsOccluded && mBouncerShowing;
         boolean shouldHideIconsForBouncer = hideBecauseApp || hideBecauseKeyguard;
         if (mHideIconsForBouncer != shouldHideIconsForBouncer) {