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

Commit 9151a699 authored by Alan Viverette's avatar Alan Viverette
Browse files

Implement missing jumpToCurrentState() in LayerDrawable

Bug: 23674536
Change-Id: Icf1a4248d82484e48a958ce019b1f9cb0caeac9e
parent d69bb610
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();