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

Commit 6b8e9444 authored by Nader Jawad's avatar Nader Jawad
Browse files

Delegated implementation of Drawable#jumpToCurrentState

Updated DrawableWrapper to provide an implementation
of Drawable#jumpToCurrentState to call into the
internal Drawable's implementation

Test: Added CTS test to DrawableWrapper
Bug: 142867050
Change-Id: Ifd095c3174da2e240fdfe4a27cfe081db16a6db5
parent 91ede359
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -363,6 +363,13 @@ public abstract class DrawableWrapper extends Drawable implements Drawable.Callb
        return false;
    }

    @Override
    public void jumpToCurrentState() {
        if (mDrawable != null) {
            mDrawable.jumpToCurrentState();
        }
    }

    @Override
    protected boolean onLevelChange(int level) {
        return mDrawable != null && mDrawable.setLevel(level);