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

Commit 1493fdd3 authored by Rob Carr's avatar Rob Carr Committed by Android (Google) Code Review
Browse files

Merge "Update mCompatFrame in applyGravityAndUpdateFrame." into nyc-dev

parents acd7a22c 6e18c5ed
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() {