package com.google.android.material.datepicker;

import android.view.View;
import android.widget.AdapterView;
import o.UP;
import o.VN;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class a implements AdapterView.OnItemClickListener {
    public final /* synthetic */ MaterialCalendarGridView l;
    public final /* synthetic */ c m;

    public a(c cVar, MaterialCalendarGridView materialCalendarGridView) {
        this.m = cVar;
        this.l = materialCalendarGridView;
    }

    @Override // android.widget.AdapterView.OnItemClickListener
    public final void onItemClick(AdapterView adapterView, View view, int i, long j) {
        MaterialCalendarGridView materialCalendarGridView = this.l;
        UP upA = materialCalendarGridView.a();
        if (i < upA.a() || i > upA.c()) {
            return;
        }
        if (materialCalendarGridView.a().getItem(i).longValue() >= ((VN) this.m.d.m).n.n.l) {
            throw null;
        }
    }
}
