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

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

am 6d7f61c3: am b7c4cfcc: am 138f272b: Merge "Save resized windows even if...

am 6d7f61c3: am b7c4cfcc: am 138f272b: Merge "Save resized windows even if freezing." into jb-mr1-dev

* commit '6d7f61c3':
  Save resized windows even if freezing.
parents 85653631 6d7f61c3
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,