package com.scb.phone.view.adapter.loan; import android.content.Context; 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.loan.SmeLoanDetailCommercialItemAdapter; import java.util.List; import o.AbstractC12339ewO; import o.AbstractC5347brN; import o.C0390Fm; import o.C16148leh; import o.pyT; /* loaded from: classes5.dex */ public final class SmeLoanDetailCommercialItemAdapter extends AbstractC12339ewO { private List c; private View.OnClickListener d; /* loaded from: classes5.dex */ public class ChildViewHolder_ViewBinding implements Unbinder { private ChildViewHolder d; public ChildViewHolder_ViewBinding(ChildViewHolder childViewHolder, View view) { this.d = childViewHolder; childViewHolder.textCommercialAccountNameValue = (TextView) pyT.e(view, R.id.text_commercial_account_name_value, "field 'textCommercialAccountNameValue'", TextView.class); childViewHolder.textCommercialInstallmentAmountValue = (TextView) pyT.e(view, R.id.text_commercial_installment_amount_value, "field 'textCommercialInstallmentAmountValue'", TextView.class); childViewHolder.textCommercialInterestRateValue = (TextView) pyT.e(view, R.id.text_commercial_interest_rate_value, "field 'textCommercialInterestRateValue'", TextView.class); childViewHolder.textCommercialNoOfLatePaymentValue = (TextView) pyT.e(view, R.id.text_commercial_no_of_late_payment_value, "field 'textCommercialNoOfLatePaymentValue'", TextView.class); childViewHolder.textCommercialTenorValue = (TextView) pyT.e(view, R.id.text_commercial_tenor_value, "field 'textCommercialTenorValue'", TextView.class); } @Override // butterknife.Unbinder public final void a() { ChildViewHolder childViewHolder = this.d; if (childViewHolder == null) { throw new IllegalStateException("Bindings already cleared."); } this.d = null; childViewHolder.textCommercialAccountNameValue = null; childViewHolder.textCommercialInstallmentAmountValue = null; childViewHolder.textCommercialInterestRateValue = null; childViewHolder.textCommercialNoOfLatePaymentValue = null; childViewHolder.textCommercialTenorValue = null; } } /* loaded from: classes5.dex */ public class GroupItemViewHolder_ViewBinding implements Unbinder { private GroupItemViewHolder e; public GroupItemViewHolder_ViewBinding(GroupItemViewHolder groupItemViewHolder, View view) { this.e = groupItemViewHolder; groupItemViewHolder.container = pyT.a(view, R.id.container, "field 'container'"); groupItemViewHolder.textDescription = (TextView) pyT.e(view, R.id.text_sme_loan_commercial_description, "field 'textDescription'", TextView.class); groupItemViewHolder.expandIcon = (ImageView) pyT.e(view, R.id.expand_icon_image_view, "field 'expandIcon'", ImageView.class); } @Override // butterknife.Unbinder public final void a() { GroupItemViewHolder groupItemViewHolder = this.e; if (groupItemViewHolder == null) { throw new IllegalStateException("Bindings already cleared."); } this.e = null; groupItemViewHolder.container = null; groupItemViewHolder.textDescription = null; groupItemViewHolder.expandIcon = null; } } public SmeLoanDetailCommercialItemAdapter(Context context, C16148leh c16148leh, List list) { super(context, c16148leh); this.c = list; this.d = new View.OnClickListener(this) { // from class: o.ewP private SmeLoanDetailCommercialItemAdapter e; @Override // android.view.View.OnClickListener public final void onClick(View view) { this.e.d(view); } { this.e = this; } }; } @Override // o.Qpt public final int d() { return this.c.size(); } @Override // o.Qpt public final RecyclerView.zJl anX_(ViewGroup viewGroup, int i) { return new GroupItemViewHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559233, viewGroup, false), this.d); } @Override // o.Qpt public final RecyclerView.zJl anW_(ViewGroup viewGroup, int i) { return new ChildViewHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559234, viewGroup, false)); } @Override // o.Qpt public final void d(RecyclerView.zJl zjl, int i) { if (zjl instanceof GroupItemViewHolder) { GroupItemViewHolder groupItemViewHolder = (GroupItemViewHolder) zjl; groupItemViewHolder.textDescription.setText(groupItemViewHolder.d.c.get(i).v); groupItemViewHolder.itemView.setClickable(true); groupItemViewHolder.expandIcon.setVisibility(0); int i2 = groupItemViewHolder.c.b; if ((Integer.MIN_VALUE & i2) != 0) { groupItemViewHolder.expandIcon.setImageResource((i2 & 4) != 0 ? R.drawable.ic_expand_less_black_24dp : R.drawable.ic_expand_more_black_24dp); } } } @Override // o.Qpt public final void c(RecyclerView.zJl zjl, int i, int i2) { if (zjl instanceof ChildViewHolder) { ChildViewHolder childViewHolder = (ChildViewHolder) zjl; C0390Fm c0390Fm = childViewHolder.a.c.get(i); childViewHolder.textCommercialAccountNameValue.setText(c0390Fm.b); childViewHolder.textCommercialInstallmentAmountValue.setText(c0390Fm.f); childViewHolder.textCommercialInterestRateValue.setText(c0390Fm.j); childViewHolder.textCommercialNoOfLatePaymentValue.setText(c0390Fm.h); childViewHolder.textCommercialTenorValue.setText(c0390Fm.B); } } /* loaded from: classes5.dex */ class GroupItemViewHolder extends AbstractC5347brN { @BindView View container; final SmeLoanDetailCommercialItemAdapter d; @BindView ImageView expandIcon; @BindView TextView textDescription; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ GroupItemViewHolder(SmeLoanDetailCommercialItemAdapter smeLoanDetailCommercialItemAdapter, View view, View.OnClickListener onClickListener) { super(view); this.d = smeLoanDetailCommercialItemAdapter; ButterKnife.c(this, view); this.container.setOnClickListener(onClickListener); } } /* loaded from: classes5.dex */ class ChildViewHolder extends AbstractC5347brN { final SmeLoanDetailCommercialItemAdapter a; private View e; @BindView TextView textCommercialAccountNameValue; @BindView TextView textCommercialInstallmentAmountValue; @BindView TextView textCommercialInterestRateValue; @BindView TextView textCommercialNoOfLatePaymentValue; @BindView TextView textCommercialTenorValue; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ ChildViewHolder(SmeLoanDetailCommercialItemAdapter smeLoanDetailCommercialItemAdapter, View view) { super(view); this.a = smeLoanDetailCommercialItemAdapter; ButterKnife.c(this, view); this.e = view; } } }