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

Commit 8e88b378 authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "Implement missing jumpToCurrentState() in LayerDrawable"

parents 4d25f52a 9151a699
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1365,6 +1365,14 @@ public class LayerDrawable extends Drawable implements Drawable.Callback {
        return mLayerState.mAutoMirrored;
    }

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

    @Override
    public boolean isStateful() {
        return mLayerState.isStateful();