what-the-bank/sources/com/scb/phone/view/adapter/cardmanagement/AmortizationTotalAmountItem...

122 lines
4.2 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.cardmanagement;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
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.C14957gcv;
import o.GJ;
import o.GM;
import o.pyT;
/* loaded from: classes5.dex */
public final class AmortizationTotalAmountItemsAdapter extends RecyclerView.Sts<ItemViewHolder> {
public GJ b;
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(ItemViewHolder itemViewHolder, int i) {
ItemViewHolder itemViewHolder2 = itemViewHolder;
C14957gcv.e(itemViewHolder2, "");
GJ gj = this.b;
if (gj != null) {
List<GM> list = gj.j;
TextView textView = null;
GM gm = list != null ? list.get(i) : null;
if (gm != null) {
TextView textView2 = itemViewHolder2.tvTotalMonth;
if (textView2 == null) {
C14957gcv.a("");
textView2 = null;
}
String str = gm.a;
if (str == null) {
str = "";
}
textView2.setText(str);
TextView textView3 = itemViewHolder2.tvTotalItemDummy;
if (textView3 == null) {
C14957gcv.a("");
textView3 = null;
}
textView3.setText(gj.f);
TextView textView4 = itemViewHolder2.tvTotalItemText;
if (textView4 != null) {
textView = textView4;
} else {
C14957gcv.a("");
}
String str2 = gm.d;
textView.setText(str2 != null ? str2 : "");
}
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ ItemViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
C14957gcv.e(viewGroup, "");
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559060, viewGroup, false);
C14957gcv.c(inflate, "");
return new ItemViewHolder(inflate);
}
/* loaded from: classes5.dex */
public final class ItemViewHolder_ViewBinding implements Unbinder {
private ItemViewHolder b;
public ItemViewHolder_ViewBinding(ItemViewHolder itemViewHolder, View view) {
this.b = itemViewHolder;
itemViewHolder.tvTotalItemDummy = (TextView) pyT.e(view, R.id.tvTotalItemDummy, "field 'tvTotalItemDummy'", TextView.class);
itemViewHolder.tvTotalMonth = (TextView) pyT.e(view, R.id.tvTotalMonth, "field 'tvTotalMonth'", TextView.class);
itemViewHolder.tvTotalItemText = (TextView) pyT.e(view, R.id.tvTotalItemText, "field 'tvTotalItemText'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
ItemViewHolder itemViewHolder = this.b;
if (itemViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.b = null;
itemViewHolder.tvTotalItemDummy = null;
itemViewHolder.tvTotalMonth = null;
itemViewHolder.tvTotalItemText = null;
}
}
/* loaded from: classes5.dex */
public static final class ItemViewHolder extends RecyclerView.zJl {
@BindView
public TextView tvTotalItemDummy;
@BindView
public TextView tvTotalItemText;
@BindView
public TextView tvTotalMonth;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public ItemViewHolder(View view) {
super(view);
C14957gcv.e(view, "");
ButterKnife.c(this, view);
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
List<GM> list;
GJ gj = this.b;
if (gj == null || (list = gj.j) == null) {
return 0;
}
return list.size();
}
}