diff options
| author | 2010-10-13 15:39:26 -0700 | |
|---|---|---|
| committer | 2010-10-13 16:02:01 -0700 | |
| commit | bcfcd8ecd49cca125c5eb24fa76cd20ecb766a92 (patch) | |
| tree | d665e094a9981ac28c9e39ba21f12f540ef94773 | |
| parent | 07e1be62c7a8650313e7ad8690968c58ec8e88ad (diff) | |
Reduce the time it takes to decay the glow after a pull.
The decay is now in line for the decay for absorb glows.
Fixes b/3094064 Overscroll fade timeout is too long
Change-Id: Ida987c8f6193fcb15f743d72c590a5c1daef056d
| -rw-r--r-- | core/java/android/widget/EdgeGlow.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/widget/EdgeGlow.java b/core/java/android/widget/EdgeGlow.java index c1a389ae1360..416be86e5915 100644 --- a/core/java/android/widget/EdgeGlow.java +++ b/core/java/android/widget/EdgeGlow.java @@ -33,10 +33,10 @@ public class EdgeGlow { private static final int RECEDE_TIME = 1000; // Time it will take before a pulled glow begins receding - private static final int PULL_TIME = 250; + private static final int PULL_TIME = 167; // Time it will take for a pulled glow to decay to partial strength before release - private static final int PULL_DECAY_TIME = 10000; + private static final int PULL_DECAY_TIME = 1000; private static final float MAX_ALPHA = 0.8f; private static final float HELD_EDGE_ALPHA = 0.7f; |