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

Commit 51745853 authored by Tony's avatar Tony
Browse files

Fix launcher animation component not playing if springs are enabled

Change-Id: I9fe919034f41bb9db3e1acdfd8e87a31c4cf7865
parent e743c80a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -149,9 +149,8 @@ public class LongSwipeHelper {

        if (QUICKSTEP_SPRINGS.get()) {
            mAnimator.dispatchOnStartWithVelocity(endProgress, velocityPxPerMs);
        } else {
            animator.start();
        }
        animator.start();
    }

    private void onSwipeAnimationComplete(boolean toAllApps, boolean isFling, Runnable callback) {
+1 −2
Original line number Diff line number Diff line
@@ -1102,9 +1102,8 @@ public class WindowTransformSwipeHandler<T extends BaseDraggingActivity> {

                if (QUICKSTEP_SPRINGS.get()) {
                    mLauncherTransitionController.dispatchOnStartWithVelocity(end, velocityPxPerMs);
                } else {
                    mLauncherTransitionController.getAnimationPlayer().start();
                }
                mLauncherTransitionController.getAnimationPlayer().start();
            }
        });
    }