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

Commit 90734c3d authored by Matthew Ng's avatar Matthew Ng Committed by android-build-merger
Browse files

Merge "Increases the minimized width in landscape by statusbar height" into oc-dev

am: e00febf6

Change-Id: Icb24d1e3e2845544936268fbbb5d27b48681506d
parents 8203c369 e00febf6
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -332,8 +332,12 @@ public class DividerSnapAlgorithm {
    }

    private void addMinimizedTarget(boolean isHorizontalDivision) {
        int position = mTaskHeightInMinimizedMode;
        position += isHorizontalDivision ? mInsets.top : mInsets.left;
        // In portrait offset the position by the statusbar height, in landscape add the statusbar
        // height as well to match portrait offset
        int position = mTaskHeightInMinimizedMode + mInsets.top;
        if (!isHorizontalDivision) {
            position += mInsets.left;
        }
        mTargets.add(new SnapTarget(position, position, SnapTarget.FLAG_NONE));
    }