what-the-bank/sources/com/scb/phone/view/adapter/bulktransfer/ManageGroupAdapter.java

131 lines
4.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.bulktransfer;
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.bulktransfer.ManageGroupAdapter;
import java.util.List;
import o.C12891fKc;
import o.FV;
import o.nMh;
import o.pyT;
/* loaded from: classes5.dex */
public final class ManageGroupAdapter extends RecyclerView.Sts<RecipientViewHolder> {
private HBt a;
private List<FV> e;
@FunctionalInterface
/* loaded from: classes5.dex */
public interface HBt {
void c(FV fv);
}
/* loaded from: classes5.dex */
public class RecipientViewHolder_ViewBinding implements Unbinder {
private RecipientViewHolder b;
public RecipientViewHolder_ViewBinding(RecipientViewHolder recipientViewHolder, View view) {
this.b = recipientViewHolder;
recipientViewHolder.imageLogo = (ImageView) pyT.e(view, R.id.logo_image_view, "field 'imageLogo'", ImageView.class);
recipientViewHolder.recipientName = (TextView) pyT.e(view, R.id.recipient_name, "field 'recipientName'", TextView.class);
recipientViewHolder.recipientNumber = (TextView) pyT.e(view, R.id.recipient_number, "field 'recipientNumber'", TextView.class);
recipientViewHolder.totalAmount = (TextView) pyT.e(view, R.id.total_amount, "field 'totalAmount'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
RecipientViewHolder recipientViewHolder = this.b;
if (recipientViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.b = null;
recipientViewHolder.imageLogo = null;
recipientViewHolder.recipientName = null;
recipientViewHolder.recipientNumber = null;
recipientViewHolder.totalAmount = null;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(RecipientViewHolder recipientViewHolder, final int i) {
RecipientViewHolder recipientViewHolder2 = recipientViewHolder;
FV fv = this.e.get(i);
C12891fKc.azf_(recipientViewHolder2.a.getContext(), R.drawable.bankicon_place_holder, recipientViewHolder2.imageLogo, fv.a, recipientViewHolder2.a.getContext().getResources().getDimensionPixelOffset(R.dimen.f15222131165286), nMh.getColor(recipientViewHolder2.a.getContext(), R.color.f3412131099849));
recipientViewHolder2.recipientName.setText(fv.g);
recipientViewHolder2.recipientNumber.setText(fv.b);
recipientViewHolder2.totalAmount.setText(fv.c);
recipientViewHolder2.a.setOnClickListener(new View.OnClickListener(this, i) { // from class: o.erk
private int c;
private ManageGroupAdapter d;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
ManageGroupAdapter.d(this.d, this.c);
}
{
this.d = this;
this.c = i;
}
});
}
public ManageGroupAdapter(List<FV> list, HBt hBt) {
this.e = list;
this.a = hBt;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
List<FV> list = this.e;
if (list == null) {
return 0;
}
return list.size();
}
/* loaded from: classes5.dex */
static class RecipientViewHolder extends RecyclerView.zJl {
View a;
@BindView
ImageView imageLogo;
@BindView
TextView recipientName;
@BindView
TextView recipientNumber;
@BindView
TextView totalAmount;
public RecipientViewHolder(View view) {
super(view);
ButterKnife.c(this, view);
this.a = view;
}
}
public static /* synthetic */ void d(ManageGroupAdapter manageGroupAdapter, int i) {
FV fv = manageGroupAdapter.e.get(i);
HBt hBt = manageGroupAdapter.a;
if (hBt != null) {
hBt.c(fv);
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ RecipientViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
return new RecipientViewHolder(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559273, viewGroup, false));
}
}