diff options
| author | 2021-03-19 20:30:07 +0000 | |
|---|---|---|
| committer | 2021-03-19 20:30:07 +0000 | |
| commit | 4db72e24b79d79c7eef24a27af7edf3e997046d2 (patch) | |
| tree | 2171f78ad9464191125e68b9f2b03ad7f64b15e1 | |
| parent | 1dfc25617a9658d324ee1f7fbe344ce8cbd01548 (diff) | |
Change the spring constants for EdgeEffect
Bug: 171228096
New spring constants for EdgeEffect.
Test: EdgeEffectTest, ScrollViewTest, HorizontalScrollViewTest,
ListViewTest
Change-Id: I094bf6a68e9acc567919eaeb62d601cb84d405a6
| -rw-r--r-- | core/java/android/widget/EdgeEffect.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/widget/EdgeEffect.java b/core/java/android/widget/EdgeEffect.java index 5f55887d6019..58dfc0df3573 100644 --- a/core/java/android/widget/EdgeEffect.java +++ b/core/java/android/widget/EdgeEffect.java @@ -117,12 +117,12 @@ public class EdgeEffect { /** * The natural frequency of the stretch spring. */ - private static final double NATURAL_FREQUENCY = 14.4222; + private static final double NATURAL_FREQUENCY = 17.55; /** * The damping ratio of the stretch spring. */ - private static final double DAMPING_RATIO = 0.875; + private static final double DAMPING_RATIO = 0.92; /** @hide */ @IntDef({TYPE_GLOW, TYPE_STRETCH}) |