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

Commit 18612840 authored by Craig Mautner's avatar Craig Mautner Committed by Android (Google) Code Review
Browse files

Merge "Force relayout at completion of status bar animation" into klp-dev

parents 0e29faac 81defc79
Loading
Loading
Loading
Loading
+9 −1
Original line number Original line Diff line number Diff line
@@ -3466,6 +3466,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                if (mStatusBarController.setBarShowingLw(true)) {
                if (mStatusBarController.setBarShowingLw(true)) {
                    changes |= FINISH_LAYOUT_REDO_LAYOUT;
                    changes |= FINISH_LAYOUT_REDO_LAYOUT;
                }
                }
                // Maintain fullscreen layout until incoming animation is complete.
                topIsFullscreen = mTopIsFullscreen && mStatusBar.isAnimatingLw();
            } else if (mTopFullscreenOpaqueWindowState != null) {
            } else if (mTopFullscreenOpaqueWindowState != null) {
                if (localLOGV) {
                if (localLOGV) {
                    Slog.d(TAG, "frame: " + mTopFullscreenOpaqueWindowState.getFrameLw()
                    Slog.d(TAG, "frame: " + mTopFullscreenOpaqueWindowState.getFrameLw()
@@ -3499,7 +3501,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;
            mTopIsFullscreen = topIsFullscreen;
        }


        // Hide the key guard if a visible window explicitly specifies that it wants to be
        // Hide the key guard if a visible window explicitly specifies that it wants to be
        // displayed when the screen is locked.
        // displayed when the screen is locked.
+4 −0
Original line number Original line Diff line number Diff line
@@ -360,6 +360,10 @@ class WindowStateAnimator {
                    + mWin.mToken + ": first real window done animating");
                    + mWin.mToken + ": first real window done animating");
            mService.mFinishedStarting.add(mWin.mAppToken);
            mService.mFinishedStarting.add(mWin.mAppToken);
            mService.mH.sendEmptyMessage(H.FINISHED_STARTING);
            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();
        finishExit();