diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2019-06-11 22:49:20 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-06-11 22:49:20 +0000 |
commit | 070866931b1ea7b9f6035dfb497778ad261bf8b0 (patch) | |
tree | 340cd3269e3585e667a177cd4e57d8b66330c402 /quickstep/recents_ui_overrides/src | |
parent | fc1db5861ab2bbf176fddc5f1be005f322970ac2 (diff) | |
parent | 91683e2bc87af332e75372d37b8c4eed15f940dd (diff) | |
download | android_packages_apps_Trebuchet-070866931b1ea7b9f6035dfb497778ad261bf8b0.tar.gz android_packages_apps_Trebuchet-070866931b1ea7b9f6035dfb497778ad261bf8b0.tar.bz2 android_packages_apps_Trebuchet-070866931b1ea7b9f6035dfb497778ad261bf8b0.zip |
Merge "Tweak spring stiffness/damping for attaching recents" into ub-launcher3-qt-dev
Diffstat (limited to 'quickstep/recents_ui_overrides/src')
-rw-r--r-- | quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityControllerHelper.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityControllerHelper.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityControllerHelper.java index 7809e454a..bb5efd008 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityControllerHelper.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityControllerHelper.java @@ -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); |