am 4e44348f: Merge "Fix shift/mask error in ArtbEvaluator" into jb-mr1-dev

* commit '4e44348f91e4df4e9ae71f5e6bd0eebf0dc87d12':
  Fix shift/mask error in ArtbEvaluator
This commit is contained in:
Chet Haase
2012-08-09 14:54:19 -07:00
committed by Android Git Automerger

View File

@@ -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;