package androidx.appcompat.widget; import android.content.Context; import android.content.res.Resources; import android.graphics.drawable.Drawable; import android.os.Build; import java.lang.ref.WeakReference; /* loaded from: classes.dex */ public class VectorEnabledTintResources extends Resources { private static boolean b = false; private final WeakReference a; public VectorEnabledTintResources(Context context, Resources resources) { super(resources.getAssets(), resources.getDisplayMetrics(), resources.getConfiguration()); this.a = new WeakReference<>(context); } public static boolean b() { return a() && Build.VERSION.SDK_INT <= 20; } final Drawable a(int i) { return super.getDrawable(i); } @Override // android.content.res.Resources public Drawable getDrawable(int i) throws Resources.NotFoundException { Context context = this.a.get(); return context != null ? AppCompatDrawableManager.a().a(context, this, i) : super.getDrawable(i); } public static boolean a() { return b; } }