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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user