We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4aa3c03 + 9b55998 commit 4e44348Copy full SHA for 4e44348
core/java/android/animation/ArgbEvaluator.java
@@ -40,13 +40,13 @@ public class ArgbEvaluator implements TypeEvaluator {
40
*/
41
public Object evaluate(float fraction, Object startValue, Object endValue) {
42
int startInt = (Integer) startValue;
43
- int startA = (startInt >> 24);
+ int startA = (startInt >> 24) & 0xff;
44
int startR = (startInt >> 16) & 0xff;
45
int startG = (startInt >> 8) & 0xff;
46
int startB = startInt & 0xff;
47
48
int endInt = (Integer) endValue;
49
- int endA = (endInt >> 24);
+ int endA = (endInt >> 24) & 0xff;
50
int endR = (endInt >> 16) & 0xff;
51
int endG = (endInt >> 8) & 0xff;
52
int endB = endInt & 0xff;
0 commit comments