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
This commit is contained in:
Nader Jawad
2019-10-31 13:38:38 -07:00
parent 91ede359fa
commit 6b8e944486

View File

@@ -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);