package com.scb.phone.view.adapter.insurance; 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 com.scb.phone.view.adapter.insurance.InsurersAdapter; import java.util.ArrayList; import o.C0800Ov; import o.C10456eEq; import o.C14957gcv; import o.PNS; import o.pyT; /* loaded from: classes5.dex */ public final class InsurersAdapter extends RecyclerView.Sts { public final ArrayList b; private final RVV d; /* loaded from: classes5.dex */ public interface RVV { void d(C0800Ov c0800Ov); } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final /* synthetic */ void onBindViewHolder(InsurersViewHolder insurersViewHolder, int i) { InsurersViewHolder insurersViewHolder2 = insurersViewHolder; C14957gcv.e(insurersViewHolder2, ""); C0800Ov c0800Ov = this.b.get(i); C14957gcv.c(c0800Ov, ""); final C0800Ov c0800Ov2 = c0800Ov; final RVV rvv = this.d; C14957gcv.e(c0800Ov2, ""); C14957gcv.e(rvv, ""); ImageView imageView = insurersViewHolder2.ivPartnerIcon; View view = null; if (imageView == null) { C14957gcv.a(""); imageView = null; } C10456eEq.aqe_(imageView, c0800Ov2.e, new PNS().c(R.drawable.biller_place_holder).a(R.drawable.biller_place_holder)); TextView textView = insurersViewHolder2.tvPartnerName; if (textView == null) { C14957gcv.a(""); textView = null; } textView.setText(c0800Ov2.d); if (c0800Ov2.c) { View view2 = insurersViewHolder2.vwSelectPartner; if (view2 != null) { view = view2; } else { C14957gcv.a(""); } view.setVisibility(0); } else { View view3 = insurersViewHolder2.vwSelectPartner; if (view3 != null) { view = view3; } else { C14957gcv.a(""); } view.setVisibility(4); } insurersViewHolder2.itemView.setOnClickListener(new View.OnClickListener(c0800Ov2, rvv) { // from class: o.eva private C0800Ov a; private InsurersAdapter.RVV e; @Override // android.view.View.OnClickListener public final void onClick(View view4) { InsurersAdapter.InsurersViewHolder.b(this.a, this.e); } { this.a = c0800Ov2; this.e = rvv; } }); } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final /* synthetic */ InsurersViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) { C14957gcv.e(viewGroup, ""); View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131560014, viewGroup, false); C14957gcv.c(inflate, ""); return new InsurersViewHolder(inflate); } /* loaded from: classes5.dex */ public final class InsurersViewHolder_ViewBinding implements Unbinder { private InsurersViewHolder e; public InsurersViewHolder_ViewBinding(InsurersViewHolder insurersViewHolder, View view) { this.e = insurersViewHolder; insurersViewHolder.ivPartnerIcon = (ImageView) pyT.e(view, R.id.iv_partner_icon, "field 'ivPartnerIcon'", ImageView.class); insurersViewHolder.tvPartnerName = (TextView) pyT.e(view, R.id.tv_partner_name, "field 'tvPartnerName'", TextView.class); insurersViewHolder.vwSelectPartner = pyT.a(view, R.id.vw_select_partner, "field 'vwSelectPartner'"); } @Override // butterknife.Unbinder public final void a() { InsurersViewHolder insurersViewHolder = this.e; if (insurersViewHolder == null) { throw new IllegalStateException("Bindings already cleared."); } this.e = null; insurersViewHolder.ivPartnerIcon = null; insurersViewHolder.tvPartnerName = null; insurersViewHolder.vwSelectPartner = null; } } public InsurersAdapter(ArrayList arrayList, RVV rvv) { C14957gcv.e(arrayList, ""); C14957gcv.e(rvv, ""); this.b = arrayList; this.d = rvv; } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final int getItemCount() { return this.b.size(); } /* loaded from: classes5.dex */ public static final class InsurersViewHolder extends RecyclerView.zJl { @BindView public ImageView ivPartnerIcon; @BindView public TextView tvPartnerName; @BindView public View vwSelectPartner; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public InsurersViewHolder(View view) { super(view); C14957gcv.e(view, ""); ButterKnife.c(this, this.itemView); } public static /* synthetic */ void b(C0800Ov c0800Ov, RVV rvv) { C14957gcv.e(c0800Ov, ""); C14957gcv.e(rvv, ""); if (c0800Ov.c) { return; } rvv.d(c0800Ov); } } }