summaryrefslogtreecommitdiff
path: root/src/com/android/launcher3/anim
diff options
context:
space:
mode:
authorJon Miranda <jonmiranda@google.com>2023-03-17 16:34:52 -0700
committerJon Miranda <jonmiranda@google.com>2023-03-20 10:56:43 -0700
commit18c53ac26b5136411c3023b671bdc72988e8e429 (patch)
treeb5413a339e856ca7cbf5a7e75f9f4bde748a3978 /src/com/android/launcher3/anim
parent5b0148602473e8367387cb56792c4aad7462d0fa (diff)
downloadLauncher3-18c53ac26b5136411c3023b671bdc72988e8e429.tar.gz
Tune springs when app animates home into the hotseat on devices
with a taskbar. Thought about using the Builder pattern here but the CL becomes much larger due to SwipePipToHomeAnimator having its own Builder. Bug: 268026344 Test: swipe up to close app thats in hotseat swipe back to close app thats in hotseat Change-Id: Idd0729224374579753fc91c7820f3b04a7d3e1a4
Diffstat (limited to 'src/com/android/launcher3/anim')
-rw-r--r--src/com/android/launcher3/anim/FlingSpringAnim.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/launcher3/anim/FlingSpringAnim.java b/src/com/android/launcher3/anim/FlingSpringAnim.java
index 51eab4c386..daf0156d30 100644
--- a/src/com/android/launcher3/anim/FlingSpringAnim.java
+++ b/src/com/android/launcher3/anim/FlingSpringAnim.java
@@ -41,11 +41,9 @@ public class FlingSpringAnim {
public <K> FlingSpringAnim(K object, Context context, FloatPropertyCompat<K> property,
float startPosition, float targetPosition, float startVelocityPxPerS,
- float minVisChange, float minValue, float maxValue,
+ float minVisChange, float minValue, float maxValue, float damping, float stiffness,
OnAnimationEndListener onEndListener) {
ResourceProvider rp = DynamicResource.provider(context);
- float damping = rp.getFloat(R.dimen.swipe_up_rect_xy_damping_ratio);
- float stiffness = rp.getFloat(R.dimen.swipe_up_rect_xy_stiffness);
float friction = rp.getFloat(R.dimen.swipe_up_rect_xy_fling_friction);
mFlingAnim = new FlingAnimation(object, property)