package com.scb.phone.view.adapter.hml; import android.content.Context; import android.graphics.drawable.Drawable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.Unbinder; import com.scb.phone.R; import com.scb.phone.view.adapter.hml.HmlBanksGridAdapter; import java.util.ArrayList; import java.util.List; import o.C12891fKc; import o.C14866gag; import o.C14957gcv; import o.InterfaceC14894gbR; import o.NT; import o.nMh; import o.pyT; /* loaded from: classes5.dex */ public final class HmlBanksGridAdapter extends BaseAdapter { public List a; private final LayoutInflater b; private final InterfaceC14894gbR c; /* loaded from: classes5.dex */ public final class HmlBankViewHolder_ViewBinding implements Unbinder { private HmlBankViewHolder b; public HmlBankViewHolder_ViewBinding(HmlBankViewHolder hmlBankViewHolder, View view) { this.b = hmlBankViewHolder; hmlBankViewHolder.bankIcon = (ImageView) pyT.e(view, R.id.img_bank_icon, "field 'bankIcon'", ImageView.class); hmlBankViewHolder.bankDescription = (TextView) pyT.e(view, R.id.tv_bank_description, "field 'bankDescription'", TextView.class); } @Override // butterknife.Unbinder public final void a() { HmlBankViewHolder hmlBankViewHolder = this.b; if (hmlBankViewHolder == null) { throw new IllegalStateException("Bindings already cleared."); } this.b = null; hmlBankViewHolder.bankIcon = null; hmlBankViewHolder.bankDescription = null; } } /* JADX WARN: Multi-variable type inference failed */ public HmlBanksGridAdapter(Context context, InterfaceC14894gbR interfaceC14894gbR) { C14957gcv.e(context, ""); C14957gcv.e(interfaceC14894gbR, ""); this.c = interfaceC14894gbR; this.a = new ArrayList(); this.b = LayoutInflater.from(context); } @Override // android.widget.Adapter public final /* synthetic */ Object getItem(int i) { return this.a.get(i); } @Override // android.widget.Adapter public final View getView(int i, View view, ViewGroup viewGroup) { HmlBankViewHolder hmlBankViewHolder; ImageView imageView; if (view == null) { view = this.b.inflate(R.layout.2131559983, viewGroup, false); hmlBankViewHolder = new HmlBankViewHolder(view); view.setTag(hmlBankViewHolder); } else { Object tag = view.getTag(); C14957gcv.d(tag, ""); hmlBankViewHolder = (HmlBankViewHolder) tag; } final NT nt = this.a.get(i); final InterfaceC14894gbR interfaceC14894gbR = this.c; C14957gcv.e(nt, ""); C14957gcv.e(interfaceC14894gbR, ""); TextView textView = hmlBankViewHolder.bankDescription; if (textView == null) { C14957gcv.a(""); textView = null; } textView.setText(nt.d); View view2 = hmlBankViewHolder.c; Context context = view2.getContext(); if (context != null) { C14957gcv.c(context, ""); Drawable drawable = nMh.getDrawable(context, R.drawable.bankicon_place_holder); ImageView imageView2 = hmlBankViewHolder.bankIcon; if (imageView2 != null) { imageView = imageView2; } else { C14957gcv.a(""); imageView = null; } C12891fKc.azg_(context, drawable, imageView, nt.b, context.getResources().getDimensionPixelOffset(R.dimen.f15232131165287), nMh.getColor(view2.getContext(), R.color.f3412131099849)); } view2.setOnClickListener(new View.OnClickListener(interfaceC14894gbR, nt) { // from class: o.euK private NT c; private InterfaceC14894gbR e; @Override // android.view.View.OnClickListener public final void onClick(View view3) { HmlBanksGridAdapter.HmlBankViewHolder.b(this.e, this.c); } { this.e = interfaceC14894gbR; this.c = nt; } }); return view; } @Override // android.widget.Adapter public final long getItemId(int i) { return this.a.get(i).c; } @Override // android.widget.Adapter public final int getCount() { return this.a.size(); } /* loaded from: classes5.dex */ public static final class HmlBankViewHolder { @BindView public TextView bankDescription; @BindView public ImageView bankIcon; final View c; public HmlBankViewHolder(View view) { C14957gcv.e(view, ""); this.c = view; ButterKnife.c(this, view); } public static /* synthetic */ void b(InterfaceC14894gbR interfaceC14894gbR, NT nt) { C14957gcv.e(interfaceC14894gbR, ""); C14957gcv.e(nt, ""); interfaceC14894gbR.invoke(Integer.valueOf(nt.c)); } } }