what-the-bank/sources/com/scb/phone/view/adapter/deposit/DepositOpenAccountSelection...

238 lines
8.8 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.deposit;
import android.content.Context;
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.deposit.DepositOpenAccountSelectionAdapter;
import java.util.List;
import o.C0698Mn;
import o.C12891fKc;
import o.C14957gcv;
import o.gdZ;
import o.pyT;
/* loaded from: classes5.dex */
public final class DepositOpenAccountSelectionAdapter extends RecyclerView.Sts<ListViewHolder> {
private final Context a;
public List<C0698Mn> b;
private final int c;
private RVV d;
private final int e;
/* loaded from: classes5.dex */
public interface RVV {
void e(C0698Mn c0698Mn);
}
/* loaded from: classes5.dex */
public final class ListViewHolderWithAccountType_ViewBinding extends ListViewHolder_ViewBinding {
private ListViewHolderWithAccountType c;
public ListViewHolderWithAccountType_ViewBinding(ListViewHolderWithAccountType listViewHolderWithAccountType, View view) {
super(listViewHolderWithAccountType, view);
this.c = listViewHolderWithAccountType;
listViewHolderWithAccountType.accountTypeTitle = (TextView) pyT.e(view, R.id.tv_account_type, "field 'accountTypeTitle'", TextView.class);
}
@Override // com.scb.phone.view.adapter.deposit.DepositOpenAccountSelectionAdapter.ListViewHolder_ViewBinding, butterknife.Unbinder
public final void a() {
ListViewHolderWithAccountType listViewHolderWithAccountType = this.c;
if (listViewHolderWithAccountType == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.c = null;
listViewHolderWithAccountType.accountTypeTitle = null;
super.a();
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(ListViewHolder listViewHolder, int i) {
ListViewHolder listViewHolder2 = listViewHolder;
C14957gcv.e(listViewHolder2, "");
final C0698Mn c0698Mn = this.b.get(i);
final RVV rvv = this.d;
C14957gcv.e(c0698Mn, "");
C14957gcv.e(rvv, "");
ImageView imageView = listViewHolder2.imageAccountType;
TextView textView = null;
if (imageView == null) {
C14957gcv.a("");
imageView = null;
}
String str = c0698Mn.d;
C14957gcv.e(imageView, "");
C14957gcv.e(str, "");
C12891fKc.azu_(imageView, str);
TextView textView2 = listViewHolder2.textAccountType;
if (textView2 == null) {
C14957gcv.a("");
textView2 = null;
}
textView2.setText(c0698Mn.b);
TextView textView3 = listViewHolder2.textAccountDescription;
if (textView3 == null) {
C14957gcv.a("");
textView3 = null;
}
textView3.setText(c0698Mn.e);
listViewHolder2.itemView.setOnClickListener(new View.OnClickListener(rvv, c0698Mn) { // from class: o.esQ
private C0698Mn b;
private DepositOpenAccountSelectionAdapter.RVV c;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
DepositOpenAccountSelectionAdapter.ListViewHolder.a(this.c, this.b);
}
{
this.c = rvv;
this.b = c0698Mn;
}
});
if (listViewHolder2 instanceof ListViewHolderWithAccountType) {
ListViewHolderWithAccountType listViewHolderWithAccountType = (ListViewHolderWithAccountType) listViewHolder2;
final C0698Mn c0698Mn2 = this.b.get(i);
final RVV rvv2 = this.d;
C14957gcv.e(c0698Mn2, "");
C14957gcv.e(rvv2, "");
TextView textView4 = listViewHolderWithAccountType.accountTypeTitle;
if (textView4 != null) {
textView = textView4;
} else {
C14957gcv.a("");
}
textView.setText(c0698Mn2.a);
listViewHolderWithAccountType.itemView.setOnClickListener(new View.OnClickListener(rvv2, c0698Mn2) { // from class: o.esS
private C0698Mn b;
private DepositOpenAccountSelectionAdapter.RVV c;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
DepositOpenAccountSelectionAdapter.ListViewHolderWithAccountType.c(this.c, this.b);
}
{
this.c = rvv2;
this.b = c0698Mn2;
}
});
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ ListViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
ListViewHolderWithAccountType listViewHolder;
C14957gcv.e(viewGroup, "");
if (i == this.e) {
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559101, viewGroup, false);
C14957gcv.c(inflate, "");
listViewHolder = new ListViewHolderWithAccountType(inflate);
} else {
View inflate2 = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559102, viewGroup, false);
C14957gcv.c(inflate2, "");
listViewHolder = new ListViewHolder(inflate2);
}
return listViewHolder;
}
/* loaded from: classes5.dex */
public class ListViewHolder_ViewBinding implements Unbinder {
private ListViewHolder d;
public ListViewHolder_ViewBinding(ListViewHolder listViewHolder, View view) {
this.d = listViewHolder;
listViewHolder.imageAccountType = (ImageView) pyT.e(view, R.id.image_account_type, "field 'imageAccountType'", ImageView.class);
listViewHolder.textAccountType = (TextView) pyT.e(view, R.id.text_account_type, "field 'textAccountType'", TextView.class);
listViewHolder.textAccountDescription = (TextView) pyT.e(view, R.id.text_account_description, "field 'textAccountDescription'", TextView.class);
}
@Override // butterknife.Unbinder
public void a() {
ListViewHolder listViewHolder = this.d;
if (listViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.d = null;
listViewHolder.imageAccountType = null;
listViewHolder.textAccountType = null;
listViewHolder.textAccountDescription = null;
}
}
public DepositOpenAccountSelectionAdapter(Context context, List<C0698Mn> list, RVV rvv) {
C14957gcv.e(context, "");
C14957gcv.e(list, "");
C14957gcv.e(rvv, "");
this.a = context;
this.b = list;
this.d = rvv;
this.c = 1;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemViewType(int i) {
String str = this.b.get(i).a;
return (str == null || gdZ.d((CharSequence) str)) ^ true ? this.e : this.c;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
return this.b.size();
}
/* loaded from: classes5.dex */
public static class ListViewHolder extends RecyclerView.zJl {
@BindView
public ImageView imageAccountType;
@BindView
public TextView textAccountDescription;
@BindView
public TextView textAccountType;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public ListViewHolder(View view) {
super(view);
C14957gcv.e(view, "");
ButterKnife.c(this, view);
}
public static /* synthetic */ void a(RVV rvv, C0698Mn c0698Mn) {
C14957gcv.e(rvv, "");
C14957gcv.e(c0698Mn, "");
rvv.e(c0698Mn);
}
}
/* loaded from: classes5.dex */
public static final class ListViewHolderWithAccountType extends ListViewHolder {
@BindView
public TextView accountTypeTitle;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public ListViewHolderWithAccountType(View view) {
super(view);
C14957gcv.e(view, "");
ButterKnife.c(this, view);
}
public static /* synthetic */ void c(RVV rvv, C0698Mn c0698Mn) {
C14957gcv.e(rvv, "");
C14957gcv.e(c0698Mn, "");
rvv.e(c0698Mn);
}
}
}