mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Merge "Tweak spring stiffness/damping for attaching recents" into ub-launcher3-qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
070866931b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user