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;

/* JADX INFO: compiled from: VectorEnabledTintResources.java */
/* JADX INFO: loaded from: classes.dex */
public class i1 extends r0 {

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    private static boolean f942c = false;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private final WeakReference<Context> f943b;

    public i1(Context context, Resources resources) {
        super(resources);
        this.f943b = new WeakReference<>(context);
    }

    public static boolean b() {
        return f942c;
    }

    public static boolean c() {
        return b() && Build.VERSION.SDK_INT <= 20;
    }

    @Override // android.content.res.Resources
    public Drawable getDrawable(int i3) throws Resources.NotFoundException {
        Context context = this.f943b.get();
        return context != null ? q0.h().t(context, this, i3) : a(i3);
    }
}
