package com.scb.phone.view.adapter.profilemanagement.promptpay; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.RadioButton; 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.profilemanagement.promptpay.DepositAccountsAdapter; import java.util.List; import o.C1081Vd; import o.fIW; import o.pyT; /* loaded from: classes5.dex */ public final class DepositAccountsAdapter extends RecyclerView.Sts { private Context b; private fIW c; private List d; private int a = -1; private fIW e = new fIW(this) { // from class: o.eyb private DepositAccountsAdapter b; @Override // o.fIW public final void a(Object obj) { DepositAccountsAdapter.b(this.b, (Integer) obj); } { this.b = this; } }; /* loaded from: classes5.dex */ public class DepositAccountHolder_ViewBinding implements Unbinder { private DepositAccountHolder b; public DepositAccountHolder_ViewBinding(DepositAccountHolder depositAccountHolder, View view) { this.b = depositAccountHolder; depositAccountHolder.title = (TextView) pyT.e(view, R.id.deposit_number, "field 'title'", TextView.class); depositAccountHolder.nickname = (TextView) pyT.e(view, R.id.deposit_nickname, "field 'nickname'", TextView.class); depositAccountHolder.radioButton = (RadioButton) pyT.e(view, R.id.radio_button, "field 'radioButton'", RadioButton.class); } @Override // butterknife.Unbinder public final void a() { DepositAccountHolder depositAccountHolder = this.b; if (depositAccountHolder == null) { throw new IllegalStateException("Bindings already cleared."); } this.b = null; depositAccountHolder.title = null; depositAccountHolder.nickname = null; depositAccountHolder.radioButton = null; } } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final /* synthetic */ void onBindViewHolder(DepositAccountHolder depositAccountHolder, final int i) { DepositAccountHolder depositAccountHolder2 = depositAccountHolder; C1081Vd c1081Vd = this.d.get(i); boolean z = i == this.a; final fIW fiw = this.e; depositAccountHolder2.title.setText(String.format("%s\n%s", c1081Vd.e, c1081Vd.a)); String str = c1081Vd.c; depositAccountHolder2.nickname.setText(str); depositAccountHolder2.nickname.setVisibility((str == null || str.isEmpty()) ? 8 : 0); depositAccountHolder2.radioButton.setChecked(z); depositAccountHolder2.radioButton.setClickable(false); depositAccountHolder2.e.setOnClickListener(new View.OnClickListener(fiw, i) { // from class: o.eyk private int c; private fIW e; @Override // android.view.View.OnClickListener public final void onClick(View view) { this.e.a(Integer.valueOf(this.c)); } { this.e = fiw; this.c = i; } }); } public DepositAccountsAdapter(Context context, List list, fIW fiw) { this.b = context; this.d = list; this.c = fiw; setHasStableIds(true); } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final int getItemCount() { return this.d.size(); } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final long getItemId(int i) { return this.d.get(i).d.hashCode(); } /* loaded from: classes5.dex */ public static class DepositAccountHolder extends RecyclerView.zJl { View e; @BindView TextView nickname; @BindView RadioButton radioButton; @BindView TextView title; DepositAccountHolder(View view) { super(view); ButterKnife.c(this, view); this.e = view; } } public static /* synthetic */ void b(DepositAccountsAdapter depositAccountsAdapter, Integer num) { depositAccountsAdapter.a = num.intValue(); depositAccountsAdapter.notifyDataSetChanged(); depositAccountsAdapter.c.a(depositAccountsAdapter.d.get(depositAccountsAdapter.a)); } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final /* synthetic */ DepositAccountHolder onCreateViewHolder(ViewGroup viewGroup, int i) { return new DepositAccountHolder(LayoutInflater.from(this.b).inflate(R.layout.2131559099, viewGroup, false)); } }