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

148 lines
5.4 KiB
Java
Raw Permalink 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 AmortizationBreakDownAmountItemsAdapter extends RecyclerView.Sts<ItemViewHolder> {
public GJ d;
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(ItemViewHolder itemViewHolder, int i) {
ItemViewHolder itemViewHolder2 = itemViewHolder;
C14957gcv.e(itemViewHolder2, "");
GJ gj = this.d;
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.tvBreakdownMonth;
if (textView2 == null) {
C14957gcv.a("");
textView2 = null;
}
String str = gm.a;
if (str == null) {
str = "";
}
textView2.setText(str);
TextView textView3 = itemViewHolder2.tvInterestItemDummy;
if (textView3 == null) {
C14957gcv.a("");
textView3 = null;
}
textView3.setText(gj.g);
TextView textView4 = itemViewHolder2.tvInterestItemText;
if (textView4 == null) {
C14957gcv.a("");
textView4 = null;
}
String str2 = gm.e;
if (str2 == null) {
str2 = "";
}
textView4.setText(str2);
TextView textView5 = itemViewHolder2.tvPrincipalItemDummy;
if (textView5 == null) {
C14957gcv.a("");
textView5 = null;
}
textView5.setText(gj.h);
TextView textView6 = itemViewHolder2.tvPrincipalItemText;
if (textView6 != null) {
textView = textView6;
} else {
C14957gcv.a("");
}
String str3 = gm.b;
textView.setText(str3 != null ? str3 : "");
}
}
}
@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.2131559059, viewGroup, false);
C14957gcv.c(inflate, "");
return new ItemViewHolder(inflate);
}
/* loaded from: classes5.dex */
public final class ItemViewHolder_ViewBinding implements Unbinder {
private ItemViewHolder d;
public ItemViewHolder_ViewBinding(ItemViewHolder itemViewHolder, View view) {
this.d = itemViewHolder;
itemViewHolder.tvBreakdownMonth = (TextView) pyT.e(view, R.id.tvBreakdownMonth, "field 'tvBreakdownMonth'", TextView.class);
itemViewHolder.tvInterestItemDummy = (TextView) pyT.e(view, R.id.tvInterestItemDummy, "field 'tvInterestItemDummy'", TextView.class);
itemViewHolder.tvInterestItemText = (TextView) pyT.e(view, R.id.tvInterestItemText, "field 'tvInterestItemText'", TextView.class);
itemViewHolder.tvPrincipalItemDummy = (TextView) pyT.e(view, R.id.tvPrincipalItemDummy, "field 'tvPrincipalItemDummy'", TextView.class);
itemViewHolder.tvPrincipalItemText = (TextView) pyT.e(view, R.id.tvPrincipalItemText, "field 'tvPrincipalItemText'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
ItemViewHolder itemViewHolder = this.d;
if (itemViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.d = null;
itemViewHolder.tvBreakdownMonth = null;
itemViewHolder.tvInterestItemDummy = null;
itemViewHolder.tvInterestItemText = null;
itemViewHolder.tvPrincipalItemDummy = null;
itemViewHolder.tvPrincipalItemText = null;
}
}
/* loaded from: classes5.dex */
public static final class ItemViewHolder extends RecyclerView.zJl {
@BindView
public TextView tvBreakdownMonth;
@BindView
public TextView tvInterestItemDummy;
@BindView
public TextView tvInterestItemText;
@BindView
public TextView tvPrincipalItemDummy;
@BindView
public TextView tvPrincipalItemText;
/* 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.d;
if (gj == null || (list = gj.j) == null) {
return 0;
}
return list.size();
}
}