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

142 lines
5.7 KiB
Java

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.FQ;
import o.Tlu;
import o.nMh;
import o.pyT;
/* loaded from: classes5.dex */
public final class BulkTransferSuccessAdapter extends RecyclerView.Sts<SuccessViewHolder> {
private final List<FQ> b;
/* loaded from: classes5.dex */
public class SuccessViewHolder_ViewBinding implements Unbinder {
private SuccessViewHolder e;
public SuccessViewHolder_ViewBinding(SuccessViewHolder successViewHolder, View view) {
this.e = successViewHolder;
successViewHolder.successFulIcon = (ImageView) pyT.e(view, R.id.successful_icon, "field 'successFulIcon'", ImageView.class);
successViewHolder.bankLogo = (ImageView) pyT.e(view, R.id.bank_logo, "field 'bankLogo'", ImageView.class);
successViewHolder.accountName = (TextView) pyT.e(view, R.id.account_name, "field 'accountName'", TextView.class);
successViewHolder.accountNumber = (TextView) pyT.e(view, R.id.account_number, "field 'accountNumber'", TextView.class);
successViewHolder.amount = (TextView) pyT.e(view, R.id.amount, "field 'amount'", TextView.class);
successViewHolder.fee = (TextView) pyT.e(view, R.id.fee, "field 'fee'", TextView.class);
successViewHolder.nickName = (TextView) pyT.e(view, R.id.nick_name, "field 'nickName'", TextView.class);
successViewHolder.errorTitle = (TextView) pyT.e(view, R.id.error_title, "field 'errorTitle'", TextView.class);
successViewHolder.feeSubTitle = (TextView) pyT.e(view, R.id.fee_sub_title, "field 'feeSubTitle'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
SuccessViewHolder successViewHolder = this.e;
if (successViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.e = null;
successViewHolder.successFulIcon = null;
successViewHolder.bankLogo = null;
successViewHolder.accountName = null;
successViewHolder.accountNumber = null;
successViewHolder.amount = null;
successViewHolder.fee = null;
successViewHolder.nickName = null;
successViewHolder.errorTitle = null;
successViewHolder.feeSubTitle = null;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(SuccessViewHolder successViewHolder, int i) {
int color;
SuccessViewHolder successViewHolder2 = successViewHolder;
FQ fq = this.b.get(i);
C12891fKc.azf_(successViewHolder2.bankLogo.getContext(), R.drawable.bankicon_place_holder, successViewHolder2.bankLogo, fq.a, successViewHolder2.bankLogo.getContext().getResources().getDimensionPixelOffset(R.dimen.f15212131165285), nMh.getColor(successViewHolder2.bankLogo.getContext(), R.color.f3412131099849));
successViewHolder2.accountName.setText(fq.d);
successViewHolder2.accountNumber.setText(fq.b);
successViewHolder2.amount.setText(fq.f8160o);
successViewHolder2.fee.setText(fq.i);
successViewHolder2.nickName.setText(fq.f);
successViewHolder2.errorTitle.setText(fq.c);
if (fq.h) {
successViewHolder2.successFulIcon.setVisibility(8);
successViewHolder2.feeSubTitle.setVisibility(0);
return;
}
Drawable drawable = nMh.getDrawable(successViewHolder2.successFulIcon.getContext(), fq.g ? R.drawable.ic_check_circle_black_48dp : R.drawable.ic_cross_circle);
successViewHolder2.errorTitle.setVisibility(fq.g ? 8 : 0);
if (drawable != null) {
Drawable pI_ = Tlu.pI_(drawable);
if (fq.g) {
color = nMh.getColor(successViewHolder2.successFulIcon.getContext(), R.color.f3432131099851);
} else {
color = nMh.getColor(successViewHolder2.successFulIcon.getContext(), R.color.f3462131099854);
}
Tlu.pE_(drawable, color);
successViewHolder2.successFulIcon.setImageDrawable(pI_);
}
}
public BulkTransferSuccessAdapter(List<FQ> list) {
this.b = list;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
return this.b.size();
}
/* loaded from: classes5.dex */
static class SuccessViewHolder extends RecyclerView.zJl {
@BindView
public TextView accountName;
@BindView
public TextView accountNumber;
@BindView
public TextView amount;
@BindView
public ImageView bankLogo;
@BindView
public TextView errorTitle;
@BindView
public TextView fee;
@BindView
public TextView feeSubTitle;
@BindView
public TextView nickName;
@BindView
public ImageView successFulIcon;
SuccessViewHolder(View view) {
super(view);
ButterKnife.c(this, view);
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ SuccessViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
return new SuccessViewHolder(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131560061, viewGroup, false));
}
}