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

Commit 0e461d80 authored by Matthew Ng's avatar Matthew Ng
Browse files

Correct insets for getNonMinimizedSplitScreenSecondaryBounds

Fixed the addition error on seascape and added top insets for launcher
to get correct bounds.

Change-Id: I963e69dcba7b20d138ba01e361f21186b773a264
Fixes: 79209096
Test: manual
parent e09cde0c
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;