diff --git a/vectorcompattextview/src/main/java/com/xw/repo/VectorCompatTextView.java b/vectorcompattextview/src/main/java/com/xw/repo/VectorCompatTextView.java index 2d0b0d4..37aa74c 100644 --- a/vectorcompattextview/src/main/java/com/xw/repo/VectorCompatTextView.java +++ b/vectorcompattextview/src/main/java/com/xw/repo/VectorCompatTextView.java @@ -117,9 +117,9 @@ private void initDrawables(Drawable... drawables) { private void tintDrawable(Drawable drawable) { if (drawable != null) { if (isTintDrawableInTextColor) { - DrawableCompat.setTint(drawable, getCurrentTextColor()); + DrawableCompat.setTint(drawable.mutate(), getCurrentTextColor()); } else if (mDrawableCompatColor != 0) { - DrawableCompat.setTint(drawable, mDrawableCompatColor); + DrawableCompat.setTint(drawable.mutate(), mDrawableCompatColor); } } }