package o;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.TextView;
import com.google.android.gms.common.R;
import java.util.Locale;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class Xm0 extends X00 {
    public final VN c;

    public Xm0(VN vn) {
        this.c = vn;
    }

    @Override // o.X00
    public final int a() {
        return this.c.n.q;
    }

    @Override // o.X00
    public final void c(AbstractC2488t10 abstractC2488t10, int i) {
        VN vn = this.c;
        int i2 = vn.n.l.n + i;
        TextView textView = ((Wm0) abstractC2488t10).t;
        textView.setText(String.format(Locale.getDefault(), "%d", Integer.valueOf(i2)));
        Context context = textView.getContext();
        textView.setContentDescription(AbstractC1789li0.b().get(1) == i2 ? String.format(context.getString(R.string.mtrl_picker_navigate_to_current_year_description), Integer.valueOf(i2)) : String.format(context.getString(R.string.mtrl_picker_navigate_to_year_description), Integer.valueOf(i2)));
        Gm0 gm0 = vn.q;
        if (AbstractC1789li0.b().get(1) == i2) {
            Object obj = gm0.n;
        } else {
            Object obj2 = gm0.m;
        }
        throw null;
    }

    @Override // o.X00
    public final AbstractC2488t10 d(ViewGroup viewGroup) {
        return new Wm0((TextView) LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.mtrl_calendar_year, viewGroup, false));
    }
}
