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

Commit 3a54ba92 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: 03c54890 am: 1d7e474c

am: 13bdbffe

Change-Id: I1fdc0c3fff32c05da159d61b8a8a7b484b24f147
parents c783ad94 13bdbffe
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -943,17 +943,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;
    }