Update DrawableWrapper to DrawableWrapperCompat

Api changed in aosp/2120177

Bug: 235727273
Test: TAP
Change-Id: I1645dab6000dc760b4de2bb625e0af8df014c8c8
This commit is contained in:
Chaohui Wang
2022-08-26 20:58:50 +08:00
committed by Anvesh Renikindi
parent 1aba0b0461
commit b1401d612f
2 changed files with 6 additions and 6 deletions

View File

@@ -20,16 +20,16 @@ import android.content.res.ColorStateList;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import androidx.appcompat.graphics.drawable.DrawableWrapper;
import androidx.appcompat.graphics.drawable.DrawableWrapperCompat;
/*
* This is directly copied from v7/appcompat/src/androidx.appcompat.internal/widget/TintManager.java
*/
/**
* A {@link DrawableWrapper} which updates it's color filter using a {@link ColorStateList}.
* A {@link DrawableWrapperCompat} which updates it's color filter using a {@link ColorStateList}.
*/
class TintDrawableWrapper extends DrawableWrapper {
class TintDrawableWrapper extends DrawableWrapperCompat {
private final ColorStateList mTintStateList;
private final PorterDuff.Mode mTintMode;
private int mCurrentColor;