what-the-bank/sources/o/AbstractC10145dxI.java

109 lines
4.0 KiB
Java

package o;
import android.view.View;
import androidx.recyclerview.widget.RecyclerView;
import java.util.List;
import o.AbstractC10155dxT;
/* renamed from: o.dxI, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public abstract class AbstractC10145dxI<T, VH extends AbstractC10155dxT<T>> extends RecyclerView.Sts<VH> {
public static final InterfaceC14984gdp<Object>[] d = {C14929gcJ.c(new gcB(AbstractC10145dxI.class, "list", "getList()Ljava/util/List;"))};
private final InterfaceC14894gbR<T, C14866gag> a;
public final InterfaceC14933gcS e;
public abstract void d(VH vh, T t);
/* renamed from: o.dxI$Sts */
/* loaded from: classes4.dex */
public static final class Sts extends AbstractC14935gcX<List<? extends T>> {
private AbstractC10145dxI d;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public Sts(Object obj, AbstractC10145dxI abstractC10145dxI) {
super(obj);
this.d = abstractC10145dxI;
}
@Override // o.AbstractC14935gcX
public final void b(InterfaceC14984gdp<?> interfaceC14984gdp, List<? extends T> list, List<? extends T> list2) {
C14957gcv.e(interfaceC14984gdp, "");
this.d.notifyDataSetChanged();
}
}
private /* synthetic */ AbstractC10145dxI(byte b) {
this((InterfaceC14894gbR) null);
}
/* JADX WARN: Multi-variable type inference failed */
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public /* synthetic */ void onBindViewHolder(RecyclerView.zJl zjl, int i) {
AbstractC10155dxT abstractC10155dxT = (AbstractC10155dxT) zjl;
C14957gcv.e(abstractC10155dxT, "");
T t = (T) ((List) this.e.c(d[0])).get(i);
C14957gcv.e(t, "");
abstractC10155dxT.b = t;
d(abstractC10155dxT, t);
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public /* synthetic */ void onViewAttachedToWindow(RecyclerView.zJl zjl) {
final AbstractC10155dxT abstractC10155dxT = (AbstractC10155dxT) zjl;
C14957gcv.e(abstractC10155dxT, "");
super.onViewAttachedToWindow(abstractC10155dxT);
abstractC10155dxT.itemView.setOnClickListener(new View.OnClickListener(this, abstractC10155dxT) { // from class: o.dxS
private AbstractC10155dxT c;
private AbstractC10145dxI e;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
AbstractC10145dxI.c(this.e, this.c);
}
{
this.e = this;
this.c = abstractC10155dxT;
}
});
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public /* synthetic */ void onViewDetachedFromWindow(RecyclerView.zJl zjl) {
AbstractC10155dxT abstractC10155dxT = (AbstractC10155dxT) zjl;
C14957gcv.e(abstractC10155dxT, "");
super.onViewDetachedFromWindow(abstractC10155dxT);
abstractC10155dxT.itemView.setOnClickListener(null);
}
/* JADX WARN: Multi-variable type inference failed */
public AbstractC10145dxI(InterfaceC14894gbR<? super T, C14866gag> interfaceC14894gbR) {
this.a = interfaceC14894gbR;
gcT gct = gcT.c;
this.e = new Sts(C14851gaI.c, this);
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public int getItemCount() {
return ((List) this.e.c(d[0])).size();
}
public static /* synthetic */ void c(AbstractC10145dxI abstractC10145dxI, AbstractC10155dxT abstractC10155dxT) {
C14957gcv.e(abstractC10145dxI, "");
C14957gcv.e(abstractC10155dxT, "");
InterfaceC14894gbR<T, C14866gag> interfaceC14894gbR = abstractC10145dxI.a;
if (interfaceC14894gbR != null) {
T t = abstractC10155dxT.b;
if (t == false) {
C14957gcv.a("");
t = (T) C14866gag.c;
}
interfaceC14894gbR.invoke(t);
}
}
public AbstractC10145dxI() {
this((byte) 0);
}
}