what-the-bank/sources/com/scb/phone/view/adapter/ndid/StatementAccountAdapter.java

146 lines
5.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.ndid;
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.ndid.StatementAccountAdapter;
import java.util.List;
import o.C0978Sv;
import o.C14957gcv;
import o.C6583cXR;
import o.pyT;
/* loaded from: classes5.dex */
public final class StatementAccountAdapter extends RecyclerView.Sts<StatementAccountViewHolder> {
private final boolean b;
public List<C0978Sv> c;
private final RVV e;
/* loaded from: classes5.dex */
public interface RVV {
void d(C0978Sv c0978Sv);
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(StatementAccountViewHolder statementAccountViewHolder, int i) {
StatementAccountViewHolder statementAccountViewHolder2 = statementAccountViewHolder;
C14957gcv.e(statementAccountViewHolder2, "");
final C0978Sv c0978Sv = this.c.get(i);
boolean z = this.b;
final RVV rvv = this.e;
C14957gcv.e(c0978Sv, "");
C14957gcv.e(rvv, "");
TextView textView = statementAccountViewHolder2.tvProductType;
ImageView imageView = null;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setText(c0978Sv.b);
TextView textView2 = statementAccountViewHolder2.tvAccountNumbers;
if (textView2 == null) {
C14957gcv.a("");
textView2 = null;
}
textView2.setText(C6583cXR.b(c0978Sv.d, z));
ImageView imageView2 = statementAccountViewHolder2.ivDelete;
if (imageView2 != null) {
imageView = imageView2;
} else {
C14957gcv.a("");
}
imageView.setOnClickListener(new View.OnClickListener(rvv, c0978Sv) { // from class: o.ext
private C0978Sv a;
private StatementAccountAdapter.RVV e;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
StatementAccountAdapter.StatementAccountViewHolder.b(this.e, this.a);
}
{
this.e = rvv;
this.a = c0978Sv;
}
});
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ StatementAccountViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
C14957gcv.e(viewGroup, "");
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559331, viewGroup, false);
C14957gcv.c(inflate, "");
return new StatementAccountViewHolder(inflate);
}
/* loaded from: classes5.dex */
public final class StatementAccountViewHolder_ViewBinding implements Unbinder {
private StatementAccountViewHolder e;
public StatementAccountViewHolder_ViewBinding(StatementAccountViewHolder statementAccountViewHolder, View view) {
this.e = statementAccountViewHolder;
statementAccountViewHolder.tvProductType = (TextView) pyT.e(view, R.id.tv_product_type, "field 'tvProductType'", TextView.class);
statementAccountViewHolder.tvAccountNumbers = (TextView) pyT.e(view, R.id.tv_account_number, "field 'tvAccountNumbers'", TextView.class);
statementAccountViewHolder.ivDelete = (ImageView) pyT.e(view, R.id.iv_delete, "field 'ivDelete'", ImageView.class);
}
@Override // butterknife.Unbinder
public final void a() {
StatementAccountViewHolder statementAccountViewHolder = this.e;
if (statementAccountViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.e = null;
statementAccountViewHolder.tvProductType = null;
statementAccountViewHolder.tvAccountNumbers = null;
statementAccountViewHolder.ivDelete = null;
}
}
public StatementAccountAdapter(List<C0978Sv> list, boolean z, RVV rvv) {
C14957gcv.e(list, "");
C14957gcv.e(rvv, "");
this.c = list;
this.b = z;
this.e = rvv;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
return this.c.size();
}
/* loaded from: classes5.dex */
public static final class StatementAccountViewHolder extends RecyclerView.zJl {
@BindView
public ImageView ivDelete;
@BindView
public TextView tvAccountNumbers;
@BindView
public TextView tvProductType;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public StatementAccountViewHolder(View view) {
super(view);
C14957gcv.e(view, "");
ButterKnife.c(this, view);
}
public static /* synthetic */ void b(RVV rvv, C0978Sv c0978Sv) {
C14957gcv.e(rvv, "");
C14957gcv.e(c0978Sv, "");
rvv.d(c0978Sv);
}
}
}