Bug 1107698 - Part 2: Update alpha when updating the color in ResizeablePathDrawable. r=bnicholson

This commit is contained in:
Michael Comella 2014-12-09 15:57:54 -08:00
parent cc5101b2a6
commit f6cdd98138

View File

@ -35,6 +35,7 @@ public class ResizablePathDrawable extends ShapeDrawable {
int newColor = colorStateList.getColorForState(stateSet, Color.WHITE);
if (newColor != currentColor) {
currentColor = newColor;
alpha = Color.alpha(currentColor);
invalidateSelf();
return true;
}