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

Commit 1efacf7f authored by Craig Mautner's avatar Craig Mautner
Browse files

Don't resize WindowStates without a Surface.

Check to make sure that a WindowState has a Surface before adding it to
mResizingWindows.

Fixes bug 6300793.

Change-Id: Ieb39422523360dcdd5f5bf8109f061ae1ced62b2
parent 002f5377
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8070,7 +8070,7 @@ public class WindowManagerService extends IWindowManager.Stub

    private void updateResizingWindows(final WindowState w) {
        final WindowStateAnimator winAnimator = w.mWinAnimator;
        if (!w.mAppFreezing && w.mLayoutSeq == mLayoutSeq) {
        if (w.mHasSurface && !w.mAppFreezing && w.mLayoutSeq == mLayoutSeq) {
            w.mContentInsetsChanged |=
                !w.mLastContentInsets.equals(w.mContentInsets);
            w.mVisibleInsetsChanged |=