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

Commit a52d2eca authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Moving the hotseat by same amount as the task window bottom when dragging

Bug: 73354752
Change-Id: I7d20e718aab9bc9be75b4d536f1aa8b87c385caf
parent a12bd507
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -290,12 +290,11 @@ public class WindowTransformSwipeHandler extends BaseSwipeInteractionHandler {
        mSourceRect.set(scaledTargetRect);

        Rect targetInsets = dp.getInsets();
        mTransitionDragLength = dp.hotseatBarSizePx;
        if (dp.isVerticalBarLayout()) {
            int hotseatInset = dp.isSeascape() ? targetInsets.left : targetInsets.right;
            mTransitionDragLength += dp.hotseatBarSidePaddingPx + hotseatInset;
            mTransitionDragLength = dp.hotseatBarSizePx + dp.hotseatBarSidePaddingPx + hotseatInset;
        } else {
            mTransitionDragLength += targetInsets.bottom;
            mTransitionDragLength = dp.heightPx - tempRect.bottom;
        }
    }