Merge change 5718 into donut
* changes: Fix NullPointerException in DrawableContainer.mutate()
This commit is contained in:
@@ -234,8 +234,10 @@ public class DrawableContainer extends Drawable implements Drawable.Callback {
|
|||||||
@Override
|
@Override
|
||||||
public Drawable mutate() {
|
public Drawable mutate() {
|
||||||
if (!mMutated && super.mutate() == this) {
|
if (!mMutated && super.mutate() == this) {
|
||||||
for (Drawable child : mDrawableContainerState.mDrawables) {
|
final int N = mDrawableContainerState.getChildCount();
|
||||||
child.mutate();
|
final Drawable[] drawables = mDrawableContainerState.getChildren();
|
||||||
|
for (int i = 0; i < N; i++) {
|
||||||
|
drawables[i].mutate();
|
||||||
}
|
}
|
||||||
mMutated = true;
|
mMutated = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user