package com.scb.phone.view.adapter.easycash; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; 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.easycash.CustomCheckboxAdapter; import com.scb.phone.view.custom.easycash.CustomCheckBox; import java.util.List; import o.JM; import o.pyT; /* loaded from: classes5.dex */ public final class CustomCheckboxAdapter extends RecyclerView.Sts { public List a; private IeS d; @FunctionalInterface /* loaded from: classes5.dex */ public interface IeS { void h(); } /* loaded from: classes5.dex */ public class CheckBoxViewHolder_ViewBinding implements Unbinder { private CheckBoxViewHolder e; public CheckBoxViewHolder_ViewBinding(CheckBoxViewHolder checkBoxViewHolder, View view) { this.e = checkBoxViewHolder; checkBoxViewHolder.customCheckbox = (CustomCheckBox) pyT.e(view, R.id.button_check_box, "field 'customCheckbox'", CustomCheckBox.class); } @Override // butterknife.Unbinder public final void a() { CheckBoxViewHolder checkBoxViewHolder = this.e; if (checkBoxViewHolder == null) { throw new IllegalStateException("Bindings already cleared."); } this.e = null; checkBoxViewHolder.customCheckbox = null; } } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final /* synthetic */ void onBindViewHolder(CheckBoxViewHolder checkBoxViewHolder, int i) { CheckBoxViewHolder checkBoxViewHolder2 = checkBoxViewHolder; final JM jm = this.a.get(i); final IeS ieS = this.d; if (jm == null) { checkBoxViewHolder2.customCheckbox.setVisibility(4); return; } checkBoxViewHolder2.customCheckbox.setVisibility(0); checkBoxViewHolder2.customCheckbox.setText(jm.n); checkBoxViewHolder2.customCheckbox.setOnClickListener(new View.OnClickListener(jm, ieS) { // from class: o.ett private CustomCheckboxAdapter.IeS b; private JM d; @Override // android.view.View.OnClickListener public final void onClick(View view) { CustomCheckboxAdapter.CheckBoxViewHolder.c(this.d, this.b); } { this.d = jm; this.b = ieS; } }); checkBoxViewHolder2.customCheckbox.setSelectedState(jm.j.booleanValue()); checkBoxViewHolder2.customCheckbox.setEnableState(jm.j.booleanValue(), jm.l.booleanValue()); } public CustomCheckboxAdapter(List list, IeS ieS) { this.a = list; this.d = ieS; } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final int getItemCount() { List list = this.a; if (list == null) { return 0; } return list.size(); } /* loaded from: classes5.dex */ public static class CheckBoxViewHolder extends RecyclerView.zJl { @BindView CustomCheckBox customCheckbox; CheckBoxViewHolder(View view) { super(view); ButterKnife.c(this, view); } public static /* synthetic */ void c(JM jm, IeS ieS) { jm.j = Boolean.valueOf(!jm.j.booleanValue()); ieS.h(); } } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final /* synthetic */ CheckBoxViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) { return new CheckBoxViewHolder(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559076, viewGroup, false)); } }