what-the-bank/sources/com/scb/phone/view/adapter/deposit/MerchantWalletSelectorAdapt...

108 lines
3.7 KiB
Java

package com.scb.phone.view.adapter.deposit;
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.ArrayList;
import java.util.List;
import o.RK;
import o.WYJ;
import o.nMh;
import o.pyT;
/* loaded from: classes5.dex */
public final class MerchantWalletSelectorAdapter extends WYJ {
private List<RK> e;
@Override // o.WYJ
public final boolean isViewFromObject(View view, Object obj) {
return view == obj;
}
/* loaded from: classes5.dex */
public class ItemViewHolder_ViewBinding implements Unbinder {
private ItemViewHolder e;
public ItemViewHolder_ViewBinding(ItemViewHolder itemViewHolder, View view) {
this.e = itemViewHolder;
itemViewHolder.imageIcon = (ImageView) pyT.e(view, R.id.image_icon, "field 'imageIcon'", ImageView.class);
itemViewHolder.textAccountNumber = (TextView) pyT.e(view, R.id.text_account_number, "field 'textAccountNumber'", TextView.class);
itemViewHolder.textAccountName = (TextView) pyT.e(view, R.id.text_account_name, "field 'textAccountName'", TextView.class);
itemViewHolder.textBalance = (TextView) pyT.e(view, R.id.text_balance, "field 'textBalance'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
ItemViewHolder itemViewHolder = this.e;
if (itemViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.e = null;
itemViewHolder.imageIcon = null;
itemViewHolder.textAccountNumber = null;
itemViewHolder.textAccountName = null;
itemViewHolder.textBalance = null;
}
}
public MerchantWalletSelectorAdapter(List<RK> list) {
this.e = list == null ? new ArrayList<>() : list;
}
@Override // o.WYJ
public final int getCount() {
return this.e.size();
}
@Override // o.WYJ
public final void destroyItem(ViewGroup viewGroup, int i, Object obj) {
viewGroup.removeView((View) obj);
}
@Override // o.WYJ
public final Object instantiateItem(ViewGroup viewGroup, int i) {
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559222, viewGroup, false);
ItemViewHolder itemViewHolder = new ItemViewHolder(this, inflate);
RK rk = itemViewHolder.e.e.get(i);
itemViewHolder.textAccountName.setText(rk.c);
itemViewHolder.textAccountNumber.setText(rk.i);
itemViewHolder.textBalance.setText(rk.h);
viewGroup.addView(inflate, 0);
return inflate;
}
/* loaded from: classes5.dex */
class ItemViewHolder extends RecyclerView.zJl {
private View d;
final MerchantWalletSelectorAdapter e;
@BindView
ImageView imageIcon;
@BindView
TextView textAccountName;
@BindView
TextView textAccountNumber;
@BindView
TextView textBalance;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
ItemViewHolder(MerchantWalletSelectorAdapter merchantWalletSelectorAdapter, View view) {
super(view);
this.e = merchantWalletSelectorAdapter;
this.d = view;
ButterKnife.c(this, view);
this.imageIcon.setImageDrawable(nMh.getDrawable(view.getContext(), R.drawable.ic_scb_wallet_shop));
}
}
}