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

Commit dd3198b7 authored by Tony's avatar Tony Committed by android-build-merger
Browse files

Don't end launcher components anim early even if it does nothing

am: c5555c45

Change-Id: I0ae148eaed1e78833f54449281c37f11acf889a4
parents 7ccf4a70 c5555c45
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -1133,17 +1133,16 @@ public class WindowTransformSwipeHandler<T extends BaseDraggingActivity>
        }
        if (start == end || duration <= 0) {
            mLauncherTransitionController.dispatchSetInterpolator(t -> end);
            mLauncherTransitionController.getAnimationPlayer().end();
        } else {
            mLauncherTransitionController.dispatchSetInterpolator(adjustedInterpolator);
            mAnimationFactory.adjustActivityControllerInterpolators();
            mLauncherTransitionController.getAnimationPlayer().setDuration(duration);
        }
        mLauncherTransitionController.getAnimationPlayer().setDuration(Math.max(0, duration));

        if (QUICKSTEP_SPRINGS.get()) {
            mLauncherTransitionController.dispatchOnStartWithVelocity(end, velocityPxPerMs.y);
        }
        mLauncherTransitionController.getAnimationPlayer().start();
        }
        mHasLauncherTransitionControllerStarted = true;
    }