package com.scb.phone.view.adapter.bulktransfer; import android.graphics.drawable.Drawable; 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 java.util.List; import o.C12891fKc; import o.FY; import o.Tlu; import o.nMh; import o.pyT; /* loaded from: classes5.dex */ public final class BulkTransferSummaryScreenshotAdapter extends RecyclerView.Sts { private final List e; /* loaded from: classes5.dex */ public class SummaryScreenshotViewHolder_ViewBinding implements Unbinder { private SummaryScreenshotViewHolder e; public SummaryScreenshotViewHolder_ViewBinding(SummaryScreenshotViewHolder summaryScreenshotViewHolder, View view) { this.e = summaryScreenshotViewHolder; summaryScreenshotViewHolder.bankLogo = (ImageView) pyT.e(view, R.id.bank_logo_image_view, "field 'bankLogo'", ImageView.class); summaryScreenshotViewHolder.accountName = (TextView) pyT.e(view, R.id.account_name_text_view, "field 'accountName'", TextView.class); summaryScreenshotViewHolder.statusIcon = (ImageView) pyT.e(view, R.id.status_icon, "field 'statusIcon'", ImageView.class); summaryScreenshotViewHolder.accountNumber = (TextView) pyT.e(view, R.id.account_number_text_view, "field 'accountNumber'", TextView.class); summaryScreenshotViewHolder.amount = (TextView) pyT.e(view, R.id.amount_text_view, "field 'amount'", TextView.class); summaryScreenshotViewHolder.nickname = (TextView) pyT.e(view, R.id.nickname_text_view, "field 'nickname'", TextView.class); summaryScreenshotViewHolder.fee = (TextView) pyT.e(view, R.id.fee_text_view, "field 'fee'", TextView.class); summaryScreenshotViewHolder.error = (TextView) pyT.e(view, R.id.error_text_view, "field 'error'", TextView.class); summaryScreenshotViewHolder.separator = pyT.a(view, R.id.separator_view, "field 'separator'"); } @Override // butterknife.Unbinder public final void a() { SummaryScreenshotViewHolder summaryScreenshotViewHolder = this.e; if (summaryScreenshotViewHolder == null) { throw new IllegalStateException("Bindings already cleared."); } this.e = null; summaryScreenshotViewHolder.bankLogo = null; summaryScreenshotViewHolder.accountName = null; summaryScreenshotViewHolder.statusIcon = null; summaryScreenshotViewHolder.accountNumber = null; summaryScreenshotViewHolder.amount = null; summaryScreenshotViewHolder.nickname = null; summaryScreenshotViewHolder.fee = null; summaryScreenshotViewHolder.error = null; summaryScreenshotViewHolder.separator = null; } } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final /* synthetic */ void onBindViewHolder(SummaryScreenshotViewHolder summaryScreenshotViewHolder, int i) { summaryScreenshotViewHolder.b(this.e.get(i), i != getItemCount() - 1); } public BulkTransferSummaryScreenshotAdapter(List list) { this.e = list; } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final int getItemCount() { return this.e.size(); } /* loaded from: classes5.dex */ static class SummaryScreenshotViewHolder extends RecyclerView.zJl { @BindView protected TextView accountName; @BindView protected TextView accountNumber; @BindView protected TextView amount; @BindView protected ImageView bankLogo; @BindView protected TextView error; @BindView protected TextView fee; @BindView protected TextView nickname; @BindView protected View separator; @BindView protected ImageView statusIcon; SummaryScreenshotViewHolder(View view) { super(view); ButterKnife.c(this, view); } final void b(FY fy, boolean z) { int color; C12891fKc.azf_(this.bankLogo.getContext(), R.drawable.bankicon_place_holder, this.bankLogo, fy.e, this.bankLogo.getContext().getResources().getDimensionPixelOffset(R.dimen.f15212131165285), nMh.getColor(this.bankLogo.getContext(), R.color.f3412131099849)); this.accountName.setText(fy.c); this.statusIcon.setImageResource(fy.i ? R.drawable.ic_check_circle_black_48dp : R.drawable.ic_cross_circle); Drawable pI_ = Tlu.pI_(this.statusIcon.getDrawable()); if (fy.i) { color = nMh.getColor(this.statusIcon.getContext(), R.color.f3432131099851); } else { color = nMh.getColor(this.statusIcon.getContext(), R.color.f3462131099854); } Tlu.pE_(pI_, color); this.accountNumber.setText(fy.d); this.amount.setText(fy.a); this.nickname.setText(fy.h); this.fee.setText(fy.g); this.error.setVisibility(fy.i ? 8 : 0); this.error.setText(fy.b); this.separator.setVisibility(z ? 0 : 8); } } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final /* synthetic */ SummaryScreenshotViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) { return new SummaryScreenshotViewHolder(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.f47052131560064, viewGroup, false)); } }