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

Commit 6e18c5ed authored by Robert Carr's avatar Robert Carr
Browse files

Update mCompatFrame in applyGravityAndUpdateFrame.

We need to make sure mCompatFrame is always updated when
mFrame is. In the reposition child case we will have
applyGravityAndUpdateFrame without computeFrameLw
so we were previously failing to do so.

Bug: 26454664
Change-Id: Ibad1644d38e6d78e5e96eff7b3c6763bd1c92f9b
parent e627558f
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -2540,6 +2540,14 @@ final class WindowState implements WindowManagerPolicy.WindowState {
        if (fitToDisplay) {
        if (fitToDisplay) {
            Gravity.applyDisplay(mAttrs.gravity, mDisplayFrame, mFrame);
            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() {
    boolean isChildWindow() {