package com.scb.phone.view.adapter.prepaid; import android.content.Context; 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.bumptech.glide.Glide; import com.scb.phone.R; import java.util.List; import o.C14851gaI; import o.C14957gcv; import o.Cdw; import o.UA; import o.WYJ; import o.pyT; /* loaded from: classes5.dex */ public final class PrepaidTravelWalletCardAdapter extends WYJ { private final Context c; public List e; public PrepaidTravelWalletCardAdapter(Context context) { C14957gcv.e(context, ""); this.c = context; this.e = C14851gaI.c; } /* loaded from: classes5.dex */ public final class WalletCardViewHolder_ViewBinding implements Unbinder { private WalletCardViewHolder d; public WalletCardViewHolder_ViewBinding(WalletCardViewHolder walletCardViewHolder, View view) { this.d = walletCardViewHolder; walletCardViewHolder.ivFlag = (ImageView) pyT.e(view, R.id.icFlag, "field 'ivFlag'", ImageView.class); walletCardViewHolder.tvCurrencyName = (TextView) pyT.e(view, R.id.tvCurrencyName, "field 'tvCurrencyName'", TextView.class); walletCardViewHolder.tvAmount = (TextView) pyT.e(view, R.id.tvAmount, "field 'tvAmount'", TextView.class); } @Override // butterknife.Unbinder public final void a() { WalletCardViewHolder walletCardViewHolder = this.d; if (walletCardViewHolder == null) { throw new IllegalStateException("Bindings already cleared."); } this.d = null; walletCardViewHolder.ivFlag = null; walletCardViewHolder.tvCurrencyName = null; walletCardViewHolder.tvAmount = null; } } @Override // o.WYJ public final Object instantiateItem(ViewGroup viewGroup, int i) { C14957gcv.e(viewGroup, ""); Object systemService = this.c.getSystemService("layout_inflater"); C14957gcv.d(systemService, ""); View inflate = ((LayoutInflater) systemService).inflate(R.layout.2131560034, viewGroup, false); UA ua = this.e.get(i); C14957gcv.c(inflate, ""); WalletCardViewHolder walletCardViewHolder = new WalletCardViewHolder(inflate); C14957gcv.e(ua, ""); Cdw c = Glide.e(walletCardViewHolder.itemView.getContext()).c(ua.h); ImageView imageView = walletCardViewHolder.ivFlag; TextView textView = null; if (imageView == null) { C14957gcv.a(""); imageView = null; } c.Dq_(imageView); TextView textView2 = walletCardViewHolder.tvCurrencyName; if (textView2 == null) { C14957gcv.a(""); textView2 = null; } textView2.setText(ua.e); TextView textView3 = walletCardViewHolder.tvAmount; if (textView3 != null) { textView = textView3; } else { C14957gcv.a(""); } textView.setText(ua.b); viewGroup.addView(inflate, 0); return inflate; } @Override // o.WYJ public final int getCount() { return this.e.size(); } /* loaded from: classes5.dex */ public static final class WalletCardViewHolder extends RecyclerView.zJl { @BindView public ImageView ivFlag; @BindView public TextView tvAmount; @BindView public TextView tvCurrencyName; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public WalletCardViewHolder(View view) { super(view); C14957gcv.e(view, ""); ButterKnife.c(this, view); } } @Override // o.WYJ public final boolean isViewFromObject(View view, Object obj) { C14957gcv.e(view, ""); C14957gcv.e(obj, ""); return view == obj; } }