83 lines
2.9 KiB
Java
83 lines
2.9 KiB
Java
|
package o;
|
||
|
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import androidx.recyclerview.widget.RecyclerView;
|
||
|
import com.scb.phone.view.custom.easycash.CustomEasyCashLoanSummaryCard;
|
||
|
import java.util.List;
|
||
|
import o.C12174etI;
|
||
|
|
||
|
/* renamed from: o.etI, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class C12174etI extends RecyclerView.Sts<RVV> {
|
||
|
private Sts a;
|
||
|
private List<JM> d;
|
||
|
|
||
|
/* renamed from: o.etI$Sts */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public interface Sts {
|
||
|
void c(int i);
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ void onBindViewHolder(RVV rvv, int i) {
|
||
|
final RVV rvv2 = rvv;
|
||
|
JM jm = this.d.get(i);
|
||
|
final Sts sts = this.a;
|
||
|
if (rvv2.itemView instanceof CustomEasyCashLoanSummaryCard) {
|
||
|
CustomEasyCashLoanSummaryCard customEasyCashLoanSummaryCard = (CustomEasyCashLoanSummaryCard) rvv2.itemView;
|
||
|
customEasyCashLoanSummaryCard.setLoanName(jm.n);
|
||
|
customEasyCashLoanSummaryCard.setLoanImageFromUrl(jm.f);
|
||
|
customEasyCashLoanSummaryCard.setCreditAmount(jm.b);
|
||
|
customEasyCashLoanSummaryCard.setLoanDetails(jm.a);
|
||
|
customEasyCashLoanSummaryCard.setApplyNowButton(jm.d.booleanValue(), new View.OnClickListener(rvv2, sts) { // from class: o.etJ
|
||
|
private C12174etI.RVV b;
|
||
|
private C12174etI.Sts e;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view) {
|
||
|
this.e.c(this.b.getAdapterPosition());
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = rvv2;
|
||
|
this.e = sts;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public C12174etI(List<JM> list, Sts sts) {
|
||
|
this.d = list;
|
||
|
this.a = sts;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final int getItemCount() {
|
||
|
List<JM> list = this.d;
|
||
|
if (list == null) {
|
||
|
return 0;
|
||
|
}
|
||
|
return list.size();
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.etI$RVV */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class RVV extends RecyclerView.zJl {
|
||
|
private C12174etI e;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
RVV(C12174etI c12174etI, View view) {
|
||
|
super(view);
|
||
|
this.e = c12174etI;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ RVV onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||
|
CustomEasyCashLoanSummaryCard customEasyCashLoanSummaryCard = new CustomEasyCashLoanSummaryCard(viewGroup.getContext());
|
||
|
customEasyCashLoanSummaryCard.setLayoutParams(new ViewGroup.LayoutParams(-1, -2));
|
||
|
return new RVV(this, customEasyCashLoanSummaryCard);
|
||
|
}
|
||
|
}
|