diff options
| author | 2012-08-09 14:52:25 -0700 | |
|---|---|---|
| committer | 2012-08-09 14:52:25 -0700 | |
| commit | 4e44348f91e4df4e9ae71f5e6bd0eebf0dc87d12 (patch) | |
| tree | 5c84712c4e9cbfd92266d722a703426a21ac8ef3 | |
| parent | 4aa3c034f547b33c65896090d92012f159abbd32 (diff) | |
| parent | 9b5599894b80b2707909e8e6872eeec7c58af73a (diff) | |
Merge "Fix shift/mask error in ArtbEvaluator" into jb-mr1-dev
| -rw-r--r-- | core/java/android/animation/ArgbEvaluator.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/animation/ArgbEvaluator.java b/core/java/android/animation/ArgbEvaluator.java index c3875bee2c2d..717a3d91f97e 100644 --- a/core/java/android/animation/ArgbEvaluator.java +++ b/core/java/android/animation/ArgbEvaluator.java @@ -40,13 +40,13 @@ public class ArgbEvaluator implements TypeEvaluator { */ public Object evaluate(float fraction, Object startValue, Object endValue) { int startInt = (Integer) startValue; - int startA = (startInt >> 24); + int startA = (startInt >> 24) & 0xff; int startR = (startInt >> 16) & 0xff; int startG = (startInt >> 8) & 0xff; int startB = startInt & 0xff; int endInt = (Integer) endValue; - int endA = (endInt >> 24); + int endA = (endInt >> 24) & 0xff; int endR = (endInt >> 16) & 0xff; int endG = (endInt >> 8) & 0xff; int endB = endInt & 0xff; |