1 package com.android.customization.widget; 2 3 import android.content.res.ColorStateList; 4 import android.graphics.drawable.Drawable; 5 import android.graphics.drawable.DrawableWrapper; 6 7 import androidx.annotation.Nullable; 8 9 /** 10 * {@link DrawableWrapper} that no-ops {@link #setTint(int)} and 11 * {@link #setTintList(ColorStateList)}, leaving the original {@link Drawable} tint intact. 12 */ 13 public class NoTintDrawableWrapper extends DrawableWrapper { NoTintDrawableWrapper(Drawable drawable)14 public NoTintDrawableWrapper(Drawable drawable) { 15 super(drawable); 16 } 17 18 @Override setTint(int tintColor)19 public void setTint(int tintColor) {} 20 21 @Override setTintList(@ullable ColorStateList tint)22 public void setTintList(@Nullable ColorStateList tint) {} 23 } 24