Propagate first call to DrawableContainer.setAlpha() to children

BUG: 12530662
Change-Id: Idd972698d1a6805cb9f66ba4c2ddde97e1f8d2ca
This commit is contained in:
Alan Viverette
2014-01-14 18:19:09 -08:00
parent 4a5eb8fe18
commit 34bd56b546

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) {