package o;

import android.content.DialogInterface;
import android.view.View;
import android.widget.AdapterView;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.b2, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0776b2 implements AdapterView.OnItemClickListener {
    public final /* synthetic */ C1158f2 l;
    public final /* synthetic */ C0871c2 m;

    public C0776b2(C0871c2 c0871c2, C1158f2 c1158f2) {
        this.m = c0871c2;
        this.l = c1158f2;
    }

    @Override // android.widget.AdapterView.OnItemClickListener
    public final void onItemClick(AdapterView adapterView, View view, int i, long j) {
        C0871c2 c0871c2 = this.m;
        DialogInterface.OnClickListener onClickListener = c0871c2.n;
        C1158f2 c1158f2 = this.l;
        onClickListener.onClick(c1158f2.b, i);
        if (c0871c2.f468o) {
            return;
        }
        c1158f2.b.dismiss();
    }
}
