package com.scb.phone.view.adapter.chequemanagement; import android.content.Context; import android.content.res.TypedArray; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.RelativeLayout; 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.chequemanagement.ManageChequeAdapter; import o.InterfaceC12824fIT; import o.pyT; /* loaded from: classes5.dex */ public final class ManageChequeAdapter extends RecyclerView.Sts { private TypedArray b; private InterfaceC12824fIT d; private TypedArray e; /* loaded from: classes5.dex */ public class ManageChequeHolder_ViewBinding implements Unbinder { private ManageChequeHolder c; public ManageChequeHolder_ViewBinding(ManageChequeHolder manageChequeHolder, View view) { this.c = manageChequeHolder; manageChequeHolder.viewContainer = (RelativeLayout) pyT.e(view, R.id.view_container, "field 'viewContainer'", RelativeLayout.class); manageChequeHolder.title = (TextView) pyT.e(view, R.id.title, "field 'title'", TextView.class); manageChequeHolder.icon = (ImageView) pyT.e(view, R.id.icon, "field 'icon'", ImageView.class); manageChequeHolder.divider = pyT.a(view, R.id.divider_view, "field 'divider'"); manageChequeHolder.fullDivider = pyT.a(view, R.id.full_divider_view, "field 'fullDivider'"); } @Override // butterknife.Unbinder public final void a() { ManageChequeHolder manageChequeHolder = this.c; if (manageChequeHolder == null) { throw new IllegalStateException("Bindings already cleared."); } this.c = null; manageChequeHolder.viewContainer = null; manageChequeHolder.title = null; manageChequeHolder.icon = null; manageChequeHolder.divider = null; manageChequeHolder.fullDivider = null; } } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final /* synthetic */ void onBindViewHolder(ManageChequeHolder manageChequeHolder, final int i) { ManageChequeHolder manageChequeHolder2 = manageChequeHolder; manageChequeHolder2.title.setText(this.e.getString(i)); manageChequeHolder2.icon.setImageResource(this.b.getResourceId(i, 0)); if (i == this.e.length() - 1) { manageChequeHolder2.fullDivider.setVisibility(0); manageChequeHolder2.divider.setVisibility(8); } else { manageChequeHolder2.fullDivider.setVisibility(8); manageChequeHolder2.divider.setVisibility(0); } manageChequeHolder2.viewContainer.setOnClickListener(new View.OnClickListener(this, i) { // from class: o.esj private int c; private ManageChequeAdapter d; @Override // android.view.View.OnClickListener public final void onClick(View view) { ManageChequeAdapter.c(this.d, this.c); } { this.d = this; this.c = i; } }); } public ManageChequeAdapter(Context context, InterfaceC12824fIT interfaceC12824fIT) { this.d = interfaceC12824fIT; this.b = context.getResources().obtainTypedArray(R.array.2130903059); this.e = context.getResources().obtainTypedArray(R.array.2130903060); } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final int getItemCount() { return this.e.length(); } /* loaded from: classes5.dex */ class ManageChequeHolder extends RecyclerView.zJl { @BindView View divider; private ManageChequeAdapter e; @BindView View fullDivider; @BindView ImageView icon; @BindView TextView title; @BindView RelativeLayout viewContainer; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ ManageChequeHolder(ManageChequeAdapter manageChequeAdapter, View view) { super(view); this.e = manageChequeAdapter; ButterKnife.c(this, view); } } public static /* synthetic */ void c(ManageChequeAdapter manageChequeAdapter, int i) { InterfaceC12824fIT interfaceC12824fIT = manageChequeAdapter.d; if (interfaceC12824fIT != null) { interfaceC12824fIT.a(i); } } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final /* synthetic */ ManageChequeHolder onCreateViewHolder(ViewGroup viewGroup, int i) { return new ManageChequeHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559275, viewGroup, false)); } }