what-the-bank/sources/com/scb/phone/view/adapter/closeaccount/AmountDetailsSuccessAdapter...

156 lines
5.6 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.closeaccount;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
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.List;
import o.C0512Ii;
import o.EM;
import o.QO;
import o.pyT;
/* loaded from: classes5.dex */
public final class AmountDetailsSuccessAdapter extends RecyclerView.Sts<DetailViewHolder> {
private List<C0512Ii> d;
/* loaded from: classes5.dex */
public class SuccessRow_ViewBinding implements Unbinder {
private SuccessRow d;
public SuccessRow_ViewBinding(SuccessRow successRow, View view) {
this.d = successRow;
successRow.textTitle = (TextView) pyT.e(view, R.id.tv_title, "field 'textTitle'", TextView.class);
successRow.textAmount = (TextView) pyT.e(view, R.id.tv_amount, "field 'textAmount'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
SuccessRow successRow = this.d;
if (successRow == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.d = null;
successRow.textTitle = null;
successRow.textAmount = null;
}
}
/* loaded from: classes5.dex */
public class DetailViewHolder_ViewBinding implements Unbinder {
private DetailViewHolder c;
public DetailViewHolder_ViewBinding(DetailViewHolder detailViewHolder, View view) {
this.c = detailViewHolder;
detailViewHolder.layoutTotalAmount = (LinearLayout) pyT.e(view, R.id.ll_total_amount, "field 'layoutTotalAmount'", LinearLayout.class);
detailViewHolder.textLeft = (TextView) pyT.e(view, R.id.label_left, "field 'textLeft'", TextView.class);
detailViewHolder.textRight = (TextView) pyT.e(view, R.id.label_right, "field 'textRight'", TextView.class);
detailViewHolder.layoutContainer = (LinearLayout) pyT.e(view, R.id.ll_layout_details_container, "field 'layoutContainer'", LinearLayout.class);
detailViewHolder.depositNumber = (TextView) pyT.e(view, R.id.tv_details_container_title, "field 'depositNumber'", TextView.class);
detailViewHolder.dividerView = pyT.a(view, R.id.divider, "field 'dividerView'");
}
@Override // butterknife.Unbinder
public final void a() {
DetailViewHolder detailViewHolder = this.c;
if (detailViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.c = null;
detailViewHolder.layoutTotalAmount = null;
detailViewHolder.textLeft = null;
detailViewHolder.textRight = null;
detailViewHolder.layoutContainer = null;
detailViewHolder.depositNumber = null;
detailViewHolder.dividerView = null;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(DetailViewHolder detailViewHolder, int i) {
DetailViewHolder detailViewHolder2 = detailViewHolder;
C0512Ii c0512Ii = this.d.get(i);
boolean z = i == getItemCount() - 1;
detailViewHolder2.depositNumber.setText(detailViewHolder2.itemView.getContext().getString(R.string.close_account_details_container_title, c0512Ii.b));
for (EM em : c0512Ii.a) {
if (em instanceof QO) {
QO qo = (QO) em;
SuccessRow successRow = new SuccessRow(LayoutInflater.from(detailViewHolder2.itemView.getContext()).inflate(R.layout.2131558951, (ViewGroup) null, false));
successRow.textTitle.setText(qo.h);
successRow.textAmount.setText(qo.f);
detailViewHolder2.layoutContainer.addView(successRow.b);
}
}
detailViewHolder2.layoutTotalAmount.setVisibility(0);
if (c0512Ii.d instanceof QO) {
QO qo2 = (QO) c0512Ii.d;
detailViewHolder2.textLeft.setText(qo2.h);
detailViewHolder2.textRight.setText(qo2.f);
}
detailViewHolder2.dividerView.setVisibility(z ? 8 : 0);
}
public AmountDetailsSuccessAdapter(List<C0512Ii> list) {
this.d = list;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
return this.d.size();
}
/* loaded from: classes5.dex */
protected static class DetailViewHolder extends RecyclerView.zJl {
@BindView
TextView depositNumber;
@BindView
View dividerView;
@BindView
LinearLayout layoutContainer;
@BindView
LinearLayout layoutTotalAmount;
@BindView
TextView textLeft;
@BindView
TextView textRight;
DetailViewHolder(View view) {
super(view);
ButterKnife.c(this, view);
}
}
/* loaded from: classes5.dex */
protected static class SuccessRow {
View b;
@BindView
TextView textAmount;
@BindView
TextView textTitle;
SuccessRow(View view) {
ButterKnife.c(this, view);
this.b = view;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ DetailViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
return new DetailViewHolder(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131558950, viewGroup, false));
}
}