what-the-bank/sources/com/scb/phone/view/adapter/easycash/LendingIssuerAdapter.java

126 lines
4.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.easycash;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;
import com.scb.phone.R;
import com.scb.phone.view.adapter.easycash.LendingIssuerAdapter;
import java.util.List;
import o.C0649Li;
import o.pyT;
/* loaded from: classes5.dex */
public final class LendingIssuerAdapter extends RecyclerView.Sts<IssuerViewHolder> {
private Sts b;
private List<C0649Li> d;
@FunctionalInterface
/* loaded from: classes5.dex */
public interface Sts {
void e(String str);
}
/* loaded from: classes5.dex */
public class IssuerViewHolder_ViewBinding implements Unbinder {
private IssuerViewHolder c;
public IssuerViewHolder_ViewBinding(IssuerViewHolder issuerViewHolder, View view) {
this.c = issuerViewHolder;
issuerViewHolder.issuerName = (TextView) pyT.e(view, R.id.issuer_name, "field 'issuerName'", TextView.class);
issuerViewHolder.loanType = (TextView) pyT.e(view, R.id.loan_type, "field 'loanType'", TextView.class);
issuerViewHolder.deleteButton = (ImageView) pyT.e(view, R.id.delete_image_view, "field 'deleteButton'", ImageView.class);
issuerViewHolder.amount = (TextView) pyT.e(view, R.id.loan_amount, "field 'amount'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
IssuerViewHolder issuerViewHolder = this.c;
if (issuerViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.c = null;
issuerViewHolder.issuerName = null;
issuerViewHolder.loanType = null;
issuerViewHolder.deleteButton = null;
issuerViewHolder.amount = null;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(IssuerViewHolder issuerViewHolder, int i) {
IssuerViewHolder issuerViewHolder2 = issuerViewHolder;
final C0649Li c0649Li = this.d.get(i);
issuerViewHolder2.issuerName.setText(c0649Li.a);
issuerViewHolder2.loanType.setText(c0649Li.b);
issuerViewHolder2.amount.setText(c0649Li.e);
issuerViewHolder2.deleteButton.setOnClickListener(new View.OnClickListener(this, c0649Li) { // from class: o.etE
private LendingIssuerAdapter c;
private C0649Li d;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
LendingIssuerAdapter.a(this.c, this.d);
}
{
this.c = this;
this.d = c0649Li;
}
});
}
public LendingIssuerAdapter(List<C0649Li> list, Sts sts) {
this.d = list;
this.b = sts;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
List<C0649Li> list = this.d;
if (list == null) {
return 0;
}
return list.size();
}
/* loaded from: classes5.dex */
static class IssuerViewHolder extends RecyclerView.zJl {
@BindView
TextView amount;
@BindView
ImageView deleteButton;
@BindView
TextView issuerName;
@BindView
TextView loanType;
public IssuerViewHolder(View view) {
super(view);
ButterKnife.c(this, view);
}
}
public static /* synthetic */ void a(LendingIssuerAdapter lendingIssuerAdapter, C0649Li c0649Li) {
String str = c0649Li.d;
Sts sts = lendingIssuerAdapter.b;
if (sts != null) {
sts.e(str);
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ IssuerViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
return new IssuerViewHolder(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559154, viewGroup, false));
}
}