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

Commit 91683e2b authored by Tony Wickham's avatar Tony Wickham
Browse files

Tweak spring stiffness/damping for attaching recents

Bug: 129985827
Change-Id: Ife70528a3cdc101260df3425ec0501b318d558e7
parent 6129e473
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -30,9 +30,6 @@ import static com.android.launcher3.anim.Interpolators.INSTANT;
import static com.android.launcher3.anim.Interpolators.LINEAR;
import static com.android.quickstep.WindowTransformSwipeHandler.RECENTS_ATTACH_DURATION;

import static androidx.dynamicanimation.animation.SpringForce.DAMPING_RATIO_LOW_BOUNCY;
import static androidx.dynamicanimation.animation.SpringForce.STIFFNESS_LOW;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
@@ -321,8 +318,8 @@ public final class LauncherActivityControllerHelper implements ActivityControlHe
                    if (mAttachToWindowTranslationXAnim == null) {
                        mAttachToWindowTranslationXAnim = new SpringAnimation(recentsView,
                                SpringAnimation.TRANSLATION_X).setSpring(new SpringForce()
                                .setDampingRatio(DAMPING_RATIO_LOW_BOUNCY)
                                .setStiffness(STIFFNESS_LOW));
                                .setDampingRatio(0.8f)
                                .setStiffness(250));
                    }
                    if (!recentsView.isShown() && animate) {
                        recentsView.setTranslationX(fromTranslationX);