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

Commit cd2640bf authored by Jerry Chang's avatar Jerry Chang
Browse files

Consider root task offset when updating split bounds

Fix: 175360659
Test: manual verified on device with cutout
Change-Id: I456b17ac74aa1894cb6d5c3ca4915f0313244b6e
parent 93746895
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -123,14 +123,16 @@ public class SplitLayout {
        mBounds1.set(mRootBounds);
        mBounds2.set(mRootBounds);
        if (isLandscape(mRootBounds)) {
            position += mRootBounds.left;
            mDividerBounds.left = position - mDividerInsets;
            mDividerBounds.right = mDividerBounds.left + mDividerWindowWidth;
            mBounds1.right = mBounds1.left + position;
            mBounds1.right = position;
            mBounds2.left = mBounds1.right + mDividerSize;
        } else {
            position += mRootBounds.top;
            mDividerBounds.top = position - mDividerInsets;
            mDividerBounds.bottom = mDividerBounds.top + mDividerWindowWidth;
            mBounds1.bottom = mBounds1.top + position;
            mBounds1.bottom = position;
            mBounds2.top = mBounds1.bottom + mDividerSize;
        }
    }