package com.scb.phone.view.adapter.bulktransfer; 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.bulktransfer.BulkTransferGroupAdapter; import java.util.List; import o.FO; import o.pyT; /* loaded from: classes5.dex */ public final class BulkTransferGroupAdapter extends RecyclerView.Sts { private List a; private LWm e; @FunctionalInterface /* loaded from: classes5.dex */ public interface LWm { void c(String str); } /* loaded from: classes5.dex */ public class GroupViewHolder_ViewBinding implements Unbinder { private GroupViewHolder e; public GroupViewHolder_ViewBinding(GroupViewHolder groupViewHolder, View view) { this.e = groupViewHolder; groupViewHolder.dividerView = pyT.a(view, R.id.divider_view, "field 'dividerView'"); groupViewHolder.footerDividerView = pyT.a(view, R.id.footer_divider_view, "field 'footerDividerView'"); groupViewHolder.groupName = (TextView) pyT.e(view, R.id.group_name, "field 'groupName'", TextView.class); groupViewHolder.recipientsNumber = (TextView) pyT.e(view, R.id.recipients_number, "field 'recipientsNumber'", TextView.class); groupViewHolder.totalAmount = (TextView) pyT.e(view, R.id.total_amount, "field 'totalAmount'", TextView.class); } @Override // butterknife.Unbinder public final void a() { GroupViewHolder groupViewHolder = this.e; if (groupViewHolder == null) { throw new IllegalStateException("Bindings already cleared."); } this.e = null; groupViewHolder.dividerView = null; groupViewHolder.footerDividerView = null; groupViewHolder.groupName = null; groupViewHolder.recipientsNumber = null; groupViewHolder.totalAmount = null; } } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final /* synthetic */ void onBindViewHolder(GroupViewHolder groupViewHolder, int i) { GroupViewHolder groupViewHolder2 = groupViewHolder; final FO fo = this.a.get(i); boolean z = getItemCount() - 1 == i; groupViewHolder2.groupName.setText(fo.a); groupViewHolder2.recipientsNumber.setText(fo.d); groupViewHolder2.totalAmount.setText(fo.g); if (z) { groupViewHolder2.dividerView.setVisibility(8); groupViewHolder2.footerDividerView.setVisibility(0); } else { groupViewHolder2.dividerView.setVisibility(0); groupViewHolder2.footerDividerView.setVisibility(8); } groupViewHolder2.itemView.setOnClickListener(new View.OnClickListener(this, fo) { // from class: o.erl private BulkTransferGroupAdapter b; private FO c; @Override // android.view.View.OnClickListener public final void onClick(View view) { BulkTransferGroupAdapter.c(this.b, this.c); } { this.b = this; this.c = fo; } }); } public BulkTransferGroupAdapter(List list, LWm lWm) { this.a = list; this.e = lWm; } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final int getItemCount() { List list = this.a; if (list == null) { return 0; } return list.size(); } /* loaded from: classes5.dex */ static class GroupViewHolder extends RecyclerView.zJl { @BindView View dividerView; @BindView View footerDividerView; @BindView TextView groupName; @BindView TextView recipientsNumber; @BindView TextView totalAmount; public GroupViewHolder(View view) { super(view); ButterKnife.c(this, view); } } public static /* synthetic */ void c(BulkTransferGroupAdapter bulkTransferGroupAdapter, FO fo) { LWm lWm = bulkTransferGroupAdapter.e; if (lWm != null) { lWm.c(fo.c); } } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final /* synthetic */ GroupViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) { return new GroupViewHolder(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131558925, viewGroup, false)); } }