package o; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import androidx.constraintlayout.widget.ConstraintLayout; import java.util.List; /* renamed from: o.esN, reason: case insensitive filesystem */ /* loaded from: classes5.dex */ public final class C12126esN extends WYJ { public List b; public C12126esN(List list) { C14957gcv.e(list, ""); this.b = list; } @Override // o.WYJ public final int getCount() { return this.b.size(); } @Override // o.WYJ public final Object instantiateItem(ViewGroup viewGroup, int i) { C14957gcv.e(viewGroup, ""); View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(com.scb.phone.R.layout.2131558965, viewGroup, false); int i2 = com.scb.phone.R.id.card_image_view; ImageView imageView = (ImageView) qeC.e(inflate, com.scb.phone.R.id.card_image_view); if (imageView != null) { i2 = com.scb.phone.R.id.card_no; TextView textView = (TextView) qeC.e(inflate, com.scb.phone.R.id.card_no); if (textView != null) { Buz buz = new Buz((ConstraintLayout) inflate, imageView, textView); C14957gcv.c(buz, ""); QE qe = this.b.get(i); String str = qe.a; if (str == null || str.length() == 0) { TextView textView2 = buz.d; C14957gcv.c(textView2, ""); TextView textView3 = textView2; C14957gcv.e(textView3, ""); textView3.setVisibility(8); } else { buz.d.setText(qe.a); } viewGroup.getContext(); C12891fKc.azn_(nMh.getDrawable(viewGroup.getContext(), com.scb.phone.R.drawable.default_card), buz.e, qe.c); buz.e.setContentDescription(qe.b); viewGroup.addView(buz.a); ConstraintLayout constraintLayout = buz.a; C14957gcv.c(constraintLayout, ""); return constraintLayout; } } throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i2))); } @Override // o.WYJ public final void destroyItem(ViewGroup viewGroup, int i, Object obj) { C14957gcv.e(viewGroup, ""); C14957gcv.e(obj, ""); viewGroup.removeView((View) obj); } @Override // o.WYJ public final boolean isViewFromObject(View view, Object obj) { C14957gcv.e(view, ""); C14957gcv.e(obj, ""); return view == obj; } @Override // o.WYJ public final int getItemPosition(Object obj) { C14957gcv.e(obj, ""); return -2; } }