Merge "Made the DrawableWrapper return the right ColorFilter" into pi-dev

This commit is contained in:
Selim Cinek
2018-04-23 02:26:58 +00:00
committed by Android (Google) Code Review

View File

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