package KNBe_11.KQgRr5e_0.KQgRr5e_0.Mqv2r_3;

import android.app.Activity;
import android.os.Build;
import androidx.fragment.app.FragmentActivity;
import java.util.List;
/* compiled from: PermissionHelper.java */
/* loaded from: classes.dex */
public abstract class X6FRs_4<T> {
    public T KQgRr5e_0;

    public X6FRs_4(T t) {
        this.KQgRr5e_0 = t;
    }

    public static X6FRs_4<? extends Activity> KQgRr5e_0(Activity activity) {
        if (Build.VERSION.SDK_INT < 23) {
            return new Mqv2r_3(activity);
        }
        if (activity instanceof FragmentActivity) {
            return new PGPF6hQ_2((FragmentActivity) activity);
        }
        return new KQgRr5e_0(activity);
    }

    public abstract boolean QxJ9d_1(String str);

    public boolean KQgRr5e_0(List<String> list) {
        for (String str : list) {
            if (KQgRr5e_0(str)) {
                return true;
            }
        }
        return false;
    }

    public boolean KQgRr5e_0(String str) {
        return !QxJ9d_1(str);
    }

    public T KQgRr5e_0() {
        return this.KQgRr5e_0;
    }
}
