190 lines
6.6 KiB
Java
190 lines
6.6 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 com.scb.phone.view.adapter.insurance.PolicyServiceAdapter;
|
|
import java.util.ArrayList;
|
|
import o.C14957gcv;
|
|
import o.InterfaceC12242euX;
|
|
import o.OA;
|
|
import o.nMh;
|
|
import o.pyT;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class PolicyServiceAdapter extends RecyclerView.Sts<ServiceViewHolder> {
|
|
private final InterfaceC12242euX b;
|
|
private final ArrayList<OA> e;
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final /* synthetic */ void onBindViewHolder(ServiceViewHolder serviceViewHolder, int i) {
|
|
ServiceViewHolder serviceViewHolder2 = serviceViewHolder;
|
|
C14957gcv.e(serviceViewHolder2, "");
|
|
OA oa = this.e.get(i);
|
|
C14957gcv.c(oa, "");
|
|
final OA oa2 = oa;
|
|
final InterfaceC12242euX interfaceC12242euX = this.b;
|
|
int i2 = i < this.e.size() + (-1) ? 0 : 8;
|
|
C14957gcv.e(oa2, "");
|
|
C14957gcv.e(interfaceC12242euX, "");
|
|
ImageView imageView = serviceViewHolder2.ivServiceIcon;
|
|
TextView textView = null;
|
|
if (imageView == null) {
|
|
C14957gcv.a("");
|
|
imageView = null;
|
|
}
|
|
imageView.setImageResource(oa2.d);
|
|
TextView textView2 = serviceViewHolder2.tvServiceTitle;
|
|
if (textView2 == null) {
|
|
C14957gcv.a("");
|
|
textView2 = null;
|
|
}
|
|
textView2.setText(oa2.b);
|
|
View view = serviceViewHolder2.vwDivider;
|
|
if (view == null) {
|
|
C14957gcv.a("");
|
|
view = null;
|
|
}
|
|
view.setVisibility(i2);
|
|
if (oa2.a) {
|
|
ImageView imageView2 = serviceViewHolder2.ivChevronIcon;
|
|
if (imageView2 == null) {
|
|
C14957gcv.a("");
|
|
imageView2 = null;
|
|
}
|
|
imageView2.setVisibility(0);
|
|
TextView textView3 = serviceViewHolder2.tvServiceTitle;
|
|
if (textView3 != null) {
|
|
textView = textView3;
|
|
} else {
|
|
C14957gcv.a("");
|
|
}
|
|
textView.setTextColor(nMh.getColor(serviceViewHolder2.itemView.getContext(), R.color.f2982131099805));
|
|
serviceViewHolder2.itemView.setOnClickListener(new View.OnClickListener(interfaceC12242euX, oa2) { // from class: o.euY
|
|
private InterfaceC12242euX c;
|
|
private OA d;
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view2) {
|
|
PolicyServiceAdapter.ServiceViewHolder.e(this.c, this.d);
|
|
}
|
|
|
|
{
|
|
this.c = interfaceC12242euX;
|
|
this.d = oa2;
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
ImageView imageView3 = serviceViewHolder2.ivChevronIcon;
|
|
if (imageView3 == null) {
|
|
C14957gcv.a("");
|
|
imageView3 = null;
|
|
}
|
|
imageView3.setVisibility(8);
|
|
TextView textView4 = serviceViewHolder2.tvServiceTitle;
|
|
if (textView4 != null) {
|
|
textView = textView4;
|
|
} else {
|
|
C14957gcv.a("");
|
|
}
|
|
textView.setTextColor(nMh.getColor(serviceViewHolder2.itemView.getContext(), R.color.f3092131099816));
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final /* synthetic */ ServiceViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
|
|
C14957gcv.e(viewGroup, "");
|
|
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131560016, viewGroup, false);
|
|
C14957gcv.c(inflate, "");
|
|
return new ServiceViewHolder(inflate);
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class ServiceViewHolder_ViewBinding implements Unbinder {
|
|
private ServiceViewHolder d;
|
|
|
|
public ServiceViewHolder_ViewBinding(ServiceViewHolder serviceViewHolder, View view) {
|
|
this.d = serviceViewHolder;
|
|
serviceViewHolder.ivServiceIcon = (ImageView) pyT.e(view, R.id.iv_service_icon, "field 'ivServiceIcon'", ImageView.class);
|
|
serviceViewHolder.tvServiceTitle = (TextView) pyT.e(view, R.id.tv_service_title, "field 'tvServiceTitle'", TextView.class);
|
|
serviceViewHolder.ivChevronIcon = (ImageView) pyT.e(view, R.id.iv_chevron_icon, "field 'ivChevronIcon'", ImageView.class);
|
|
serviceViewHolder.vwDivider = pyT.a(view, R.id.vw_divider, "field 'vwDivider'");
|
|
}
|
|
|
|
@Override // butterknife.Unbinder
|
|
public final void a() {
|
|
ServiceViewHolder serviceViewHolder = this.d;
|
|
if (serviceViewHolder == null) {
|
|
throw new IllegalStateException("Bindings already cleared.");
|
|
}
|
|
this.d = null;
|
|
serviceViewHolder.ivServiceIcon = null;
|
|
serviceViewHolder.tvServiceTitle = null;
|
|
serviceViewHolder.ivChevronIcon = null;
|
|
serviceViewHolder.vwDivider = null;
|
|
}
|
|
}
|
|
|
|
public PolicyServiceAdapter(ArrayList<OA> arrayList, InterfaceC12242euX interfaceC12242euX) {
|
|
C14957gcv.e(arrayList, "");
|
|
C14957gcv.e(interfaceC12242euX, "");
|
|
this.e = arrayList;
|
|
this.b = interfaceC12242euX;
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final int getItemCount() {
|
|
return this.e.size();
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public static final class ServiceViewHolder extends RecyclerView.zJl {
|
|
|
|
@BindView
|
|
public ImageView ivChevronIcon;
|
|
|
|
@BindView
|
|
public ImageView ivServiceIcon;
|
|
|
|
@BindView
|
|
public TextView tvServiceTitle;
|
|
|
|
@BindView
|
|
public View vwDivider;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public ServiceViewHolder(View view) {
|
|
super(view);
|
|
C14957gcv.e(view, "");
|
|
ButterKnife.c(this, this.itemView);
|
|
}
|
|
|
|
public static /* synthetic */ void e(InterfaceC12242euX interfaceC12242euX, OA oa) {
|
|
C14957gcv.e(interfaceC12242euX, "");
|
|
C14957gcv.e(oa, "");
|
|
interfaceC12242euX.b(oa);
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public static final class RVV {
|
|
private RVV() {
|
|
}
|
|
|
|
public /* synthetic */ RVV(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
static {
|
|
new RVV((byte) 0);
|
|
}
|
|
}
|