package p004b;

import android.content.Intent;
import java.util.ArrayList;
import java.util.Map;
import p009c1.C0499d;
import p009c1.C0510o;
import p009c1.C0518w;
import p039m1.C1468e;

/* renamed from: b.b */
/* loaded from: classes.dex */
public final class C0464b extends AbstractC0463a<String[], Map<String, Boolean>> {

    /* renamed from: a */
    public static final C0465a f1680a = new C0465a(null);

    /* renamed from: b.b$a */
    /* loaded from: classes.dex */
    public static final class C0465a {
        public C0465a() {
        }

        public /* synthetic */ C0465a(C1468e c1468e) {
            this();
        }
    }

    @Override // p004b.AbstractC0463a
    /* renamed from: b */
    public Map<String, Boolean> mo3634a(int i, Intent intent) {
        if (i == -1 && intent != null) {
            String[] stringArrayExtra = intent.getStringArrayExtra("androidx.activity.result.contract.extra.PERMISSIONS");
            int[] intArrayExtra = intent.getIntArrayExtra("androidx.activity.result.contract.extra.PERMISSION_GRANT_RESULTS");
            if (intArrayExtra == null || stringArrayExtra == null) {
                return C0518w.m3578d();
            }
            ArrayList arrayList = new ArrayList(intArrayExtra.length);
            for (int i2 : intArrayExtra) {
                arrayList.add(Boolean.valueOf(i2 == 0));
            }
            return C0518w.m3575g(C0510o.m3598m(C0499d.m3615d(stringArrayExtra), arrayList));
        }
        return C0518w.m3578d();
    }
}