package yb;

import android.view.LayoutInflater;
import android.view.ViewGroup;
import androidx.recyclerview.widget.RecyclerView;
import java.util.List;
import kotlin.jvm.internal.t;
import zb.s1;

/* loaded from: classes4.dex */
public final class a extends RecyclerView.h {

    /* renamed from: d, reason: collision with root package name */
    private final List f52070d;

    /* renamed from: yb.a$a, reason: collision with other inner class name */
    /* loaded from: classes4.dex */
    public static final class C1043a extends RecyclerView.e0 {
        private final s1 J;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C1043a(s1 binding) {
            super(binding.x());
            t.g(binding, "binding");
            this.J = binding;
        }

        public final void O(int i10) {
            this.J.A.setImageResource(i10);
            this.J.q();
        }
    }

    public a(List whatIsNewDataList) {
        t.g(whatIsNewDataList, "whatIsNewDataList");
        this.f52070d = whatIsNewDataList;
    }

    @Override // androidx.recyclerview.widget.RecyclerView.h
    /* renamed from: F, reason: merged with bridge method [inline-methods] */
    public void u(C1043a holder, int i10) {
        t.g(holder, "holder");
        holder.O(((Number) this.f52070d.get(i10)).intValue());
    }

    @Override // androidx.recyclerview.widget.RecyclerView.h
    /* renamed from: G, reason: merged with bridge method [inline-methods] */
    public C1043a w(ViewGroup parent, int i10) {
        t.g(parent, "parent");
        s1 U = s1.U(LayoutInflater.from(parent.getContext()), parent, false);
        t.f(U, "inflate(...)");
        return new C1043a(U);
    }

    @Override // androidx.recyclerview.widget.RecyclerView.h
    public int g() {
        return this.f52070d.size();
    }
}
