package com.google.android.material.datepicker; import android.view.LayoutInflater; import android.view.ViewGroup; import android.widget.TextView; import androidx.recyclerview.widget.RecyclerView; import java.util.Locale; /* loaded from: classes2.dex */ class v extends RecyclerView.g { /* renamed from: c, reason: collision with root package name */ private final i f4568c; public static class a extends RecyclerView.d0 { /* renamed from: t, reason: collision with root package name */ final TextView f4569t; a(TextView textView) { super(textView); this.f4569t = textView; } } v(i iVar) { this.f4568c = iVar; } @Override // androidx.recyclerview.widget.RecyclerView.g public int c() { return this.f4568c.p().j(); } int t(int i10) { return i10 - this.f4568c.p().i().f4551d; } int u(int i10) { return this.f4568c.p().i().f4551d + i10; } @Override // androidx.recyclerview.widget.RecyclerView.g /* renamed from: v, reason: merged with bridge method [inline-methods] */ public void i(a aVar, int i10) { int u10 = u(i10); String string = aVar.f4569t.getContext().getString(c3.h.f3545j); aVar.f4569t.setText(String.format(Locale.getDefault(), "%d", Integer.valueOf(u10))); aVar.f4569t.setContentDescription(String.format(string, Integer.valueOf(u10))); c q10 = this.f4568c.q(); if (u.i().get(1) == u10) { b bVar = q10.f4486f; } else { b bVar2 = q10.f4484d; } this.f4568c.s(); throw null; } @Override // androidx.recyclerview.widget.RecyclerView.g /* renamed from: w, reason: merged with bridge method [inline-methods] */ public a k(ViewGroup viewGroup, int i10) { return new a((TextView) LayoutInflater.from(viewGroup.getContext()).inflate(c3.g.f3533i, viewGroup, false)); } }