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

Commit 2f9ca5aa authored by Robert Carr's avatar Robert Carr Committed by android-build-merger
Browse files

Merge "Update mCompatFrame in applyGravityAndUpdateFrame." into nyc-dev am: 1493fdd3

am: b9b29e1a

* commit 'b9b29e1a':
  Update mCompatFrame in applyGravityAndUpdateFrame.
parents b9ef3476 b9b29e1a
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2546,6 +2546,14 @@ final class WindowState implements WindowManagerPolicy.WindowState {
        if (fitToDisplay) {
            Gravity.applyDisplay(mAttrs.gravity, mDisplayFrame, mFrame);
        }

        // We need to make sure we update the CompatFrame as it is used for
        // cropping decisions, etc, on systems where we lack a decor layer.
        mCompatFrame.set(mFrame);
        if (mEnforceSizeCompat) {
            // See comparable block in computeFrameLw.
            mCompatFrame.scale(mInvGlobalScale);
        }
    }

    boolean isChildWindow() {