auto import from //branches/cupcake/...@130745
This commit is contained in:
@@ -24,6 +24,7 @@ import android.graphics.drawable.Drawable;
|
||||
public class ProxyDrawable extends Drawable {
|
||||
|
||||
private Drawable mProxy;
|
||||
private boolean mMutated;
|
||||
|
||||
public ProxyDrawable(Drawable target) {
|
||||
mProxy = target;
|
||||
@@ -88,5 +89,14 @@ public class ProxyDrawable extends Drawable {
|
||||
mProxy.setAlpha(alpha);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Drawable mutate() {
|
||||
if (mProxy != null && !mMutated && super.mutate() == this) {
|
||||
mProxy.mutate();
|
||||
mMutated = true;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user