From 7a64e3a6f3e9f4de9cb097f604187d06268c23be Mon Sep 17 00:00:00 2001 From: Mindy Pereira Date: Sun, 10 Oct 2010 10:58:54 -0700 Subject: [PATCH] DO NOT MERGE Set the cap at alpha to 80% of the total available. No matter how much the user drags, the alpha like the height should not get greater than a max and that max is 80% of what is available in the image. Change-Id: I57d181d6ea685461a44ed3ee29f83a675bc07fbc --- core/java/android/widget/EdgeGlow.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/widget/EdgeGlow.java b/core/java/android/widget/EdgeGlow.java index 8d1446212b03e..c1a389ae13600 100644 --- a/core/java/android/widget/EdgeGlow.java +++ b/core/java/android/widget/EdgeGlow.java @@ -38,7 +38,7 @@ public class EdgeGlow { // 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 float MAX_ALPHA = 1.f; + private static final float MAX_ALPHA = 0.8f; private static final float HELD_EDGE_ALPHA = 0.7f; private static final float HELD_EDGE_SCALE_Y = 0.5f; private static final float HELD_GLOW_ALPHA = 0.5f;