diff options
| author | 2020-09-28 15:58:00 -0500 | |
|---|---|---|
| committer | 2020-10-09 14:52:52 -0500 | |
| commit | 7d249bff2ff1d833a56f850903c8d0a6c95a3c33 (patch) | |
| tree | d5ebdf3babb17e6551ca6fddceb9e065eab4862c | |
| parent | a3e52bf4e492786d3937d8926ea447e310f6ec98 (diff) | |
Increase stack expansion overshoot
Bug: 169595742
Test: expand stack, see higher bounce (confirmed with UX)
Change-Id: I1a3e55ce6fde3c0697096a1a3def9a1ce9c41735
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/bubbles/animation/ExpandedAnimationController.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/animation/ExpandedAnimationController.java b/packages/SystemUI/src/com/android/systemui/bubbles/animation/ExpandedAnimationController.java index 9f88ee55082d..fd73207a1e3e 100644 --- a/packages/SystemUI/src/com/android/systemui/bubbles/animation/ExpandedAnimationController.java +++ b/packages/SystemUI/src/com/android/systemui/bubbles/animation/ExpandedAnimationController.java @@ -58,6 +58,9 @@ public class ExpandedAnimationController /** Duration of the expand/collapse target path animation. */ public static final int EXPAND_COLLAPSE_TARGET_ANIM_DURATION = 175; + /** Damping ratio for expand/collapse spring. */ + private static final float DAMPING_RATIO_MEDIUM_LOW_BOUNCY = 0.65f; + /** Stiffness for the expand/collapse path-following animation. */ private static final int EXPAND_COLLAPSE_ANIM_STIFFNESS = 1000; @@ -510,7 +513,7 @@ public class ExpandedAnimationController @Override SpringForce getSpringForce(DynamicAnimation.ViewProperty property, View view) { return new SpringForce() - .setDampingRatio(SpringForce.DAMPING_RATIO_LOW_BOUNCY) + .setDampingRatio(DAMPING_RATIO_MEDIUM_LOW_BOUNCY) .setStiffness(SpringForce.STIFFNESS_LOW); } |