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

Commit b9b29e1a 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

* commit '1493fdd3':
  Update mCompatFrame in applyGravityAndUpdateFrame.
parents de3d7195 1493fdd3
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() {