Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68d180bb authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Check for null drawable during LayerDrawable.jumpToCurrentState()" into nyc-dev

parents 436308f8 6f9626a1
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -1419,9 +1419,13 @@ public class LayerDrawable extends Drawable implements Drawable.Callback {

    @Override
    public void jumpToCurrentState() {
        final ChildDrawable[] children = mLayerState.mChildren;
        for (int i = 0, count = mLayerState.mNum; i < count; i++) {
            children[i].mDrawable.jumpToCurrentState();
        final ChildDrawable[] array = mLayerState.mChildren;
        final int N = mLayerState.mNum;
        for (int i = 0; i < N; i++) {
            final Drawable dr = array[i].mDrawable;
            if (dr != null) {
                dr.jumpToCurrentState();
            }
        }
    }