package o; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.CheckBox; import android.widget.LinearLayout; import android.widget.TextView; import androidx.recyclerview.widget.RecyclerView; import java.util.List; import o.C12109erx; /* renamed from: o.erx, reason: case insensitive filesystem */ /* loaded from: classes5.dex */ public final class C12109erx extends AbstractC12141esc { public List b; public InterfaceC9077dcs c; @Override // androidx.recyclerview.widget.RecyclerView.Sts public final void onBindViewHolder(RecyclerView.zJl zjl, int i) { C14957gcv.e(zjl, ""); if (zjl instanceof HBt) { HBt hBt = (HBt) zjl; List list = hBt.c.b; final C0419Ge c0419Ge = list != null ? list.get(i) : null; final C16109lLh c16109lLh = hBt.a; final C12109erx c12109erx = hBt.c; c16109lLh.b.setText(c0419Ge != null ? c0419Ge.e : null); c16109lLh.e.setText(c0419Ge != null ? c0419Ge.h : null); c16109lLh.c.setText(c0419Ge != null ? c0419Ge.i : null); c16109lLh.d.setChecked(c0419Ge != null ? c0419Ge.b : false); hBt.a.a.setOnClickListener(new View.OnClickListener(c16109lLh, c12109erx, c0419Ge) { // from class: o.ery private C0419Ge a; private C16109lLh c; private C12109erx d; @Override // android.view.View.OnClickListener public final void onClick(View view) { C12109erx.HBt.c(this.c, this.d, this.a); } { this.c = c16109lLh; this.d = c12109erx; this.a = c0419Ge; } }); } } @Override // o.AbstractC12141esc public final RecyclerView.zJl amY_(ViewGroup viewGroup) { View inflate = LayoutInflater.from(viewGroup != null ? viewGroup.getContext() : null).inflate(com.scb.phone.R.layout.2131560157, viewGroup, false); int i = com.scb.phone.R.id.checkbox_purchase; CheckBox checkBox = (CheckBox) qeC.e(inflate, com.scb.phone.R.id.checkbox_purchase); if (checkBox != null) { LinearLayout linearLayout = (LinearLayout) inflate; i = com.scb.phone.R.id.transaction_amount; TextView textView = (TextView) qeC.e(inflate, com.scb.phone.R.id.transaction_amount); if (textView != null) { i = com.scb.phone.R.id.transaction_date; TextView textView2 = (TextView) qeC.e(inflate, com.scb.phone.R.id.transaction_date); if (textView2 != null) { i = com.scb.phone.R.id.txv_merch_name; TextView textView3 = (TextView) qeC.e(inflate, com.scb.phone.R.id.txv_merch_name); if (textView3 != null) { C16109lLh c16109lLh = new C16109lLh(linearLayout, checkBox, linearLayout, textView, textView2, textView3); C14957gcv.c(c16109lLh, ""); return new HBt(this, c16109lLh); } } } } throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i))); } @Override // o.AbstractC12141esc public final int d() { List list = this.b; if (list != null) { return list.size(); } return 0; } /* renamed from: o.erx$HBt */ /* loaded from: classes5.dex */ final class HBt extends RecyclerView.zJl { final C16109lLh a; final C12109erx c; public static /* synthetic */ void c(C16109lLh c16109lLh, C12109erx c12109erx, C0419Ge c0419Ge) { C14957gcv.e(c16109lLh, ""); C14957gcv.e(c12109erx, ""); if (!c16109lLh.d.isChecked()) { InterfaceC9077dcs interfaceC9077dcs = c12109erx.c; if (interfaceC9077dcs == null || !interfaceC9077dcs.c()) { if (c0419Ge != null) { c0419Ge.b = true; } c16109lLh.d.setChecked(true); InterfaceC9077dcs interfaceC9077dcs2 = c12109erx.c; if (interfaceC9077dcs2 != null) { interfaceC9077dcs2.b(c0419Ge, true); return; } return; } return; } if (c0419Ge != null) { c0419Ge.b = false; } c16109lLh.d.setChecked(false); InterfaceC9077dcs interfaceC9077dcs3 = c12109erx.c; if (interfaceC9077dcs3 != null) { interfaceC9077dcs3.b(c0419Ge, false); } } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public HBt(C12109erx c12109erx, C16109lLh c16109lLh) { super(c16109lLh.a); C14957gcv.e(c16109lLh, ""); this.c = c12109erx; this.a = c16109lLh; } } }