package X6FRs_4.KQgRr5e_0.LGe8pk_15;

import android.content.Context;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.os.Build;
import java.lang.ref.WeakReference;
/* compiled from: VectorEnabledTintResources.java */
/* loaded from: classes.dex */
public class JXypC6_34 extends Resources {
    public static boolean KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final WeakReference<Context> f694KQgRr5e_0;

    public JXypC6_34(Context context, Resources resources) {
        super(resources.getAssets(), resources.getDisplayMetrics(), resources.getConfiguration());
        this.f694KQgRr5e_0 = new WeakReference<>(context);
    }

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

    public final Drawable KQgRr5e_0(int i) {
        return super.getDrawable(i);
    }

    @Override // android.content.res.Resources
    public Drawable getDrawable(int i) throws Resources.NotFoundException {
        Context context = this.f694KQgRr5e_0.get();
        if (context != null) {
            return IFxWkV_5.KQgRr5e_0().KQgRr5e_0(context, this, i);
        }
        return super.getDrawable(i);
    }

    public static boolean KQgRr5e_0() {
        return KQgRr5e_0;
    }
}
