Merge "Delegated implementation of Drawable#jumpToCurrentState"
This commit is contained in:
committed by
Android (Google) Code Review
commit
4da463026c
@@ -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