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

Commit 5eb9c9c3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by android-build-merger
Browse files

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

am: 98188c50

* commit '98188c50':
  Check for null drawable during LayerDrawable.jumpToCurrentState()

Change-Id: I323967d369a2e3abb99b5912499951d39b29bd9d
parents 087530c9 98188c50
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();
            }
        }
    }