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

Commit 67ef02fd authored by Robert Carr's avatar Robert Carr Committed by android-build-merger
Browse files

WindowManager: Restore update behavior of mLastFrame. am: dbf61b64 am: 47b2f590

am: b763f03b

Change-Id: I9652dc6f700e703636997a9f6b29c6a662cacd1a
parents c4dcd4bc b763f03b
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -8400,10 +8400,17 @@ public class WindowManagerService extends IWindowManager.Stub
            }
            final boolean dragResizingChanged = w.isDragResizeChanged()
                    && !w.isDragResizingChangeReported();

            if (localLOGV) Slog.v(TAG_WM, "Resizing " + w
                    + ": configChanged=" + configChanged
                    + " dragResizingChanged=" + dragResizingChanged
                    + " last=" + w.mLastFrame + " frame=" + w.mFrame);

            // We update mLastFrame always rather than in the conditional with the
            // last inset variables, because mFrameSizeChanged only tracks the
            // width and height changing.
            w.mLastFrame.set(w.mFrame);

            if (w.mContentInsetsChanged
                    || w.mVisibleInsetsChanged
                    || winAnimator.mSurfaceResized
@@ -8441,7 +8448,6 @@ public class WindowManagerService extends IWindowManager.Stub
                w.mLastVisibleInsets.set(w.mVisibleInsets);
                w.mLastStableInsets.set(w.mStableInsets);
                w.mLastOutsets.set(w.mOutsets);
                w.mLastFrame.set(w.mFrame);
                makeWindowFreezingScreenIfNeededLocked(w);
                // If the orientation is changing, or we're starting or ending
                // a drag resizing action, then we need to hold off on unfreezing