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

Commit 34b3ba0c authored by chaviw's avatar chaviw
Browse files

Fixed Window insets calculations.

Change-Id: I000645a89d1087272739c716e3110bccdfc0dbf0
Test: go/wm-smoke
parent beb077d9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -286,8 +286,9 @@ public class WindowFrames {
        boolean overrideBottomInset = !windowsAreFloating && !inFullscreenContainer
                && mFrame.bottom > windowBounds.bottom;

        mTmpRect.set(mFrame.left, mFrame.top, overrideRightInset ? mTmpRect.right : mFrame.right,
                overrideBottomInset ? mTmpRect.bottom : mFrame.bottom);
        mTmpRect.set(mFrame.left, mFrame.top,
                overrideRightInset ? windowBounds.right : mFrame.right,
                overrideBottomInset ? windowBounds.bottom : mFrame.bottom);

        InsetUtils.insetsBetweenFrames(mTmpRect, mContentFrame, mContentInsets);
        InsetUtils.insetsBetweenFrames(mTmpRect, mVisibleFrame, mVisibleInsets);