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

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

Merge "Save resized windows even if freezing." into jb-mr1-dev

parents 33877e15 ade0a9a9
Loading
Loading
Loading
Loading
+35 −33
Original line number Diff line number Diff line
@@ -8726,7 +8726,7 @@ public class WindowManagerService extends IWindowManager.Stub

    private void updateResizingWindows(final WindowState w) {
        final WindowStateAnimator winAnimator = w.mWinAnimator;
        if (w.mHasSurface && !w.mAppFreezing && w.mLayoutSeq == mLayoutSeq) {
        if (w.mHasSurface && w.mLayoutSeq == mLayoutSeq) {
            w.mContentInsetsChanged |=
                    !w.mLastContentInsets.equals(w.mContentInsets);
            w.mVisibleInsetsChanged |=
@@ -9261,9 +9261,12 @@ public class WindowManagerService extends IWindowManager.Stub
                    defaultDisplay.pendingLayoutChanges);
        }

        if (!mResizingWindows.isEmpty()) {
        for (i = mResizingWindows.size() - 1; i >= 0; i--) {
            WindowState win = mResizingWindows.get(i);
            if (win.mAppFreezing) {
                // Don't remove this window until rotation has completed.
                continue;
            }
            final WindowStateAnimator winAnimator = win.mWinAnimator;
            try {
                if (DEBUG_RESIZE || DEBUG_ORIENTATION) Slog.v(TAG,
@@ -9292,8 +9295,7 @@ public class WindowManagerService extends IWindowManager.Stub
            } catch (RemoteException e) {
                win.mOrientationChanging = false;
            }
            }
            mResizingWindows.clear();
            mResizingWindows.remove(i);
        }

        if (DEBUG_ORIENTATION && mDisplayFrozen) Slog.v(TAG,