From bcfcd8ecd49cca125c5eb24fa76cd20ecb766a92 Mon Sep 17 00:00:00 2001 From: Mindy Pereira Date: Wed, 13 Oct 2010 15:39:26 -0700 Subject: 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 --- core/java/android/widget/EdgeGlow.java | 4 ++-- 1 file 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; -- cgit v1.2.3-59-g8ed1b