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

Commit 94d63e4f authored by mattsziklay's avatar mattsziklay Committed by Matt Sziklay
Browse files

Correctly apply transaction on the end of veiled resize.

Fixes a bug where a resize would not apply on the task surface on the
end of drag.

Bug: 274773589
Test: Manual, confirm drag end correctly resizes task.
Test: atest WMShellUnitTests:VeiledResizeTaskPositionerTest
Change-Id: Idf2ebc09f551f6a8de6419c8dc0f146311364deb
parent 173bf356
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -86,9 +86,10 @@ public class VeiledResizeTaskPositioner implements DragPositioningCallback {
    public void onDragPositioningEnd(float x, float y) {
        PointF delta = DragPositioningCallbackUtility.calculateDelta(x, y,
                mRepositionStartPoint);
        if (mHasMoved && DragPositioningCallbackUtility.changeBounds(mCtrlType, mHasMoved,
        if (mHasMoved) {
            DragPositioningCallbackUtility.changeBounds(mCtrlType, mHasMoved,
                    mRepositionTaskBounds, mTaskBoundsAtDragStart, mStableBounds, delta,
                mDisplayController, mDesktopWindowDecoration)) {
                    mDisplayController, mDesktopWindowDecoration);
            DragPositioningCallbackUtility.applyTaskBoundsChange(
                    new WindowContainerTransaction(), mDesktopWindowDecoration,
                    mRepositionTaskBounds, mTaskOrganizer);