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

Commit ff060d86 authored by Craig Mautner's avatar Craig Mautner Committed by Android Git Automerger
Browse files

am e2f74638: am 1dbaf904: am 18612840: Merge "Force relayout at completion of...

am e2f74638: am 1dbaf904: am 18612840: Merge "Force relayout at completion of status bar animation" into klp-dev

* commit 'e2f74638':
  Force relayout at completion of status bar animation
parents c336c29c e2f74638
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -3471,6 +3471,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                if (mStatusBarController.setBarShowingLw(true)) {
                    changes |= FINISH_LAYOUT_REDO_LAYOUT;
                }
                // Maintain fullscreen layout until incoming animation is complete.
                topIsFullscreen = mTopIsFullscreen && mStatusBar.isAnimatingLw();
            } else if (mTopFullscreenOpaqueWindowState != null) {
                if (localLOGV) {
                    Slog.d(TAG, "frame: " + mTopFullscreenOpaqueWindowState.getFrameLw()
@@ -3504,7 +3506,13 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            }
        }

        if (mTopIsFullscreen != topIsFullscreen) {
            if (!topIsFullscreen) {
                // Force another layout when status bar becomes fully shown.
                changes |= FINISH_LAYOUT_REDO_LAYOUT;
            }
            mTopIsFullscreen = topIsFullscreen;
        }

        // Hide the key guard if a visible window explicitly specifies that it wants to be
        // displayed when the screen is locked.
+4 −0
Original line number Diff line number Diff line
@@ -360,6 +360,10 @@ class WindowStateAnimator {
                    + mWin.mToken + ": first real window done animating");
            mService.mFinishedStarting.add(mWin.mAppToken);
            mService.mH.sendEmptyMessage(H.FINISHED_STARTING);
        } else if (mAttrType == LayoutParams.TYPE_STATUS_BAR && mWin.mPolicyVisibility) {
            // Upon completion of a not-visible to visible status bar animation a relayout is
            // required.
            mWin.mDisplayContent.layoutNeeded = true;
        }

        finishExit();