Consider root task offset when updating split bounds
Fix: 175360659 Test: manual verified on device with cutout Change-Id: I456b17ac74aa1894cb6d5c3ca4915f0313244b6e
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user