100 lines
3.1 KiB
Java
100 lines
3.1 KiB
Java
package com.scb.phone.view.adapter.easycash;
|
|
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
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.EasycashLoanTrackingAdapter;
|
|
import java.util.List;
|
|
import o.C0657Lo;
|
|
import o.C0665Ls;
|
|
import o.pyT;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class EasycashLoanTrackingAdapter extends RecyclerView.Sts<LoanViewHolder> {
|
|
private final List<C0657Lo> d;
|
|
private final HBt e;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public interface HBt {
|
|
void e(C0665Ls c0665Ls);
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class LoanViewHolder_ViewBinding implements Unbinder {
|
|
private LoanViewHolder e;
|
|
|
|
public LoanViewHolder_ViewBinding(LoanViewHolder loanViewHolder, View view) {
|
|
this.e = loanViewHolder;
|
|
loanViewHolder.title = (TextView) pyT.e(view, R.id.text_loan_tracking, "field 'title'", TextView.class);
|
|
}
|
|
|
|
@Override // butterknife.Unbinder
|
|
public final void a() {
|
|
LoanViewHolder loanViewHolder = this.e;
|
|
if (loanViewHolder == null) {
|
|
throw new IllegalStateException("Bindings already cleared.");
|
|
}
|
|
this.e = null;
|
|
loanViewHolder.title = null;
|
|
}
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final /* synthetic */ void onBindViewHolder(LoanViewHolder loanViewHolder, int i) {
|
|
LoanViewHolder loanViewHolder2 = loanViewHolder;
|
|
final C0657Lo c0657Lo = this.d.get(i);
|
|
final HBt hBt = this.e;
|
|
loanViewHolder2.title.setText(c0657Lo.j);
|
|
loanViewHolder2.itemView.setOnClickListener(new View.OnClickListener(hBt, c0657Lo) { // from class: o.etC
|
|
private C0657Lo c;
|
|
private EasycashLoanTrackingAdapter.HBt e;
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
this.e.e(this.c);
|
|
}
|
|
|
|
{
|
|
this.e = hBt;
|
|
this.c = c0657Lo;
|
|
}
|
|
});
|
|
}
|
|
|
|
public EasycashLoanTrackingAdapter(List<C0657Lo> list, HBt hBt) {
|
|
this.d = list;
|
|
this.e = hBt;
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final int getItemCount() {
|
|
if (this.d.isEmpty()) {
|
|
return 0;
|
|
}
|
|
return this.d.size();
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public static class LoanViewHolder extends RecyclerView.zJl {
|
|
|
|
@BindView
|
|
TextView title;
|
|
|
|
LoanViewHolder(View view) {
|
|
super(view);
|
|
ButterKnife.c(this, view);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final /* synthetic */ LoanViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
|
|
return new LoanViewHolder(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559112, viewGroup, false));
|
|
}
|
|
}
|