151 lines
5.7 KiB
Java
151 lines
5.7 KiB
Java
|
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 java.util.ArrayList;
|
||
|
import o.C0804Oy;
|
||
|
import o.C10456eEq;
|
||
|
import o.C14957gcv;
|
||
|
import o.CDU;
|
||
|
import o.PNS;
|
||
|
import o.RBw;
|
||
|
import o.pyT;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class PolicyCardAdapter extends RecyclerView.Sts<PolicyCardViewHolder> {
|
||
|
public ArrayList<C0804Oy> c;
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ void onBindViewHolder(PolicyCardViewHolder policyCardViewHolder, int i) {
|
||
|
PolicyCardViewHolder policyCardViewHolder2 = policyCardViewHolder;
|
||
|
C14957gcv.e(policyCardViewHolder2, "");
|
||
|
C0804Oy c0804Oy = this.c.get(i);
|
||
|
C14957gcv.c(c0804Oy, "");
|
||
|
C0804Oy c0804Oy2 = c0804Oy;
|
||
|
C14957gcv.e(c0804Oy2, "");
|
||
|
ImageView imageView = policyCardViewHolder2.ivProductTypeIcon;
|
||
|
TextView textView = null;
|
||
|
if (imageView == null) {
|
||
|
C14957gcv.a("");
|
||
|
imageView = null;
|
||
|
}
|
||
|
C10456eEq.aqe_(imageView, c0804Oy2.k, new PNS().c(R.drawable.biller_place_holder).a(R.drawable.biller_place_holder).c(RBw.d, new CDU()));
|
||
|
ImageView imageView2 = policyCardViewHolder2.ivPartnerIcon;
|
||
|
if (imageView2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
imageView2 = null;
|
||
|
}
|
||
|
C10456eEq.aqe_(imageView2, c0804Oy2.f, new PNS().c(R.drawable.biller_place_holder).a(R.drawable.biller_place_holder).c(RBw.d, new CDU()));
|
||
|
TextView textView2 = policyCardViewHolder2.tvProductTypeName;
|
||
|
if (textView2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView2 = null;
|
||
|
}
|
||
|
textView2.setText(c0804Oy2.l);
|
||
|
TextView textView3 = policyCardViewHolder2.tvProductName;
|
||
|
if (textView3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView3 = null;
|
||
|
}
|
||
|
textView3.setText(c0804Oy2.j);
|
||
|
TextView textView4 = policyCardViewHolder2.tvPolicyNo;
|
||
|
if (textView4 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView4 = null;
|
||
|
}
|
||
|
textView4.setText(c0804Oy2.g);
|
||
|
TextView textView5 = policyCardViewHolder2.tvEffectiveDate;
|
||
|
if (textView5 != null) {
|
||
|
textView = textView5;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
textView.setText(c0804Oy2.e);
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ PolicyCardViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||
|
C14957gcv.e(viewGroup, "");
|
||
|
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131560015, viewGroup, false);
|
||
|
C14957gcv.c(inflate, "");
|
||
|
return new PolicyCardViewHolder(inflate);
|
||
|
}
|
||
|
|
||
|
public PolicyCardAdapter(ArrayList<C0804Oy> arrayList) {
|
||
|
C14957gcv.e(arrayList, "");
|
||
|
this.c = arrayList;
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class PolicyCardViewHolder_ViewBinding implements Unbinder {
|
||
|
private PolicyCardViewHolder d;
|
||
|
|
||
|
public PolicyCardViewHolder_ViewBinding(PolicyCardViewHolder policyCardViewHolder, View view) {
|
||
|
this.d = policyCardViewHolder;
|
||
|
policyCardViewHolder.ivProductTypeIcon = (ImageView) pyT.e(view, R.id.iv_product_type_icon, "field 'ivProductTypeIcon'", ImageView.class);
|
||
|
policyCardViewHolder.ivPartnerIcon = (ImageView) pyT.e(view, R.id.iv_partner_icon, "field 'ivPartnerIcon'", ImageView.class);
|
||
|
policyCardViewHolder.tvProductTypeName = (TextView) pyT.e(view, R.id.tv_product_type_name, "field 'tvProductTypeName'", TextView.class);
|
||
|
policyCardViewHolder.tvProductName = (TextView) pyT.e(view, R.id.tv_product_name, "field 'tvProductName'", TextView.class);
|
||
|
policyCardViewHolder.tvPolicyNo = (TextView) pyT.e(view, R.id.tv_policy_no, "field 'tvPolicyNo'", TextView.class);
|
||
|
policyCardViewHolder.tvEffectiveDate = (TextView) pyT.e(view, R.id.tv_effective_date, "field 'tvEffectiveDate'", TextView.class);
|
||
|
}
|
||
|
|
||
|
@Override // butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
PolicyCardViewHolder policyCardViewHolder = this.d;
|
||
|
if (policyCardViewHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.d = null;
|
||
|
policyCardViewHolder.ivProductTypeIcon = null;
|
||
|
policyCardViewHolder.ivPartnerIcon = null;
|
||
|
policyCardViewHolder.tvProductTypeName = null;
|
||
|
policyCardViewHolder.tvProductName = null;
|
||
|
policyCardViewHolder.tvPolicyNo = null;
|
||
|
policyCardViewHolder.tvEffectiveDate = null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final int getItemCount() {
|
||
|
return this.c.size();
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class PolicyCardViewHolder extends RecyclerView.zJl {
|
||
|
|
||
|
@BindView
|
||
|
public ImageView ivPartnerIcon;
|
||
|
|
||
|
@BindView
|
||
|
public ImageView ivProductTypeIcon;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvEffectiveDate;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvPolicyNo;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvProductName;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvProductTypeName;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
public PolicyCardViewHolder(View view) {
|
||
|
super(view);
|
||
|
C14957gcv.e(view, "");
|
||
|
ButterKnife.c(this, this.itemView);
|
||
|
}
|
||
|
}
|
||
|
}
|