Merge "Propagate first call to DrawableContainer.setAlpha() to children"

This commit is contained in:
Alan Viverette
2014-01-15 02:24:44 +00:00
committed by Android (Google) Code Review

View File

@@ -120,9 +120,8 @@ public class DrawableContainer extends Drawable implements Drawable.Callback {
@Override
public void setAlpha(int alpha) {
mHasAlpha = true;
if (mAlpha != alpha) {
if (!mHasAlpha || mAlpha != alpha) {
mHasAlpha = true;
mAlpha = alpha;
if (mCurrDrawable != null) {
if (mEnterAnimationEnd == 0) {