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

Commit ad2a7367 authored by android-build-team Robot's avatar android-build-team Robot Committed by android-build-merger
Browse files

Merge "Correct insets for getNonMinimizedSplitScreenSecondaryBounds" into pi-dev

am: 040fc4cf

Change-Id: I6f47ed0879a5ea72993049df59ece1eb299c6988
parents f73e79ba 040fc4cf
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -376,15 +376,15 @@ public class DividerView extends FrameLayout implements OnTouchListener,
    public Rect getNonMinimizedSplitScreenSecondaryBounds() {
        calculateBoundsForPosition(mSnapTargetBeforeMinimized.position,
                DockedDividerUtils.invertDockSide(mDockSide), mOtherTaskRect);
        mOtherTaskRect.bottom -= mStableInsets.bottom;
        switch (mDockSide) {
            case WindowManager.DOCKED_LEFT:
                mOtherTaskRect.top += mStableInsets.top;
                mOtherTaskRect.right -= mStableInsets.right;
                break;
            case WindowManager.DOCKED_RIGHT:
                mOtherTaskRect.left -= mStableInsets.left;
                break;
            case WindowManager.DOCKED_TOP:
                mOtherTaskRect.bottom -= mStableInsets.bottom;
                mOtherTaskRect.top += mStableInsets.top;
                mOtherTaskRect.left += mStableInsets.left;
                break;
        }
        return mOtherTaskRect;