Merge "Made the DrawableWrapper return the right ColorFilter" into pi-dev
This commit is contained in:
@@ -295,6 +295,15 @@ public abstract class DrawableWrapper extends Drawable implements Drawable.Callb
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public ColorFilter getColorFilter() {
|
||||
final Drawable drawable = getDrawable();
|
||||
if (drawable != null) {
|
||||
return drawable.getColorFilter();
|
||||
}
|
||||
return super.getColorFilter();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTintList(@Nullable ColorStateList tint) {
|
||||
if (mDrawable != null) {
|
||||
|
||||
Reference in New Issue
Block a user