what-the-bank/sources/com/scb/phone/view/adapter/tierpricing/TierPricingInstallmentAdapt...

121 lines
4.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.tierpricing;
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.WY;
import o.nMh;
import o.pyT;
/* loaded from: classes5.dex */
public final class TierPricingInstallmentAdapter extends RecyclerView.Sts<InstallmentViewHolder> {
private final Integer b;
private final List<WY> e;
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(InstallmentViewHolder installmentViewHolder, int i) {
InstallmentViewHolder installmentViewHolder2 = installmentViewHolder;
C14957gcv.e(installmentViewHolder2, "");
WY wy = this.e.get(i);
C14957gcv.e(wy, "");
TextView textView = installmentViewHolder2.title;
TextView textView2 = null;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setText(wy.c);
TextView textView3 = installmentViewHolder2.value;
if (textView3 == null) {
C14957gcv.a("");
textView3 = null;
}
textView3.setText(wy.a);
Integer num = installmentViewHolder2.a;
if (num != null) {
if (num == null || num.intValue() != 0) {
TextView textView4 = installmentViewHolder2.value;
if (textView4 == null) {
C14957gcv.a("");
textView4 = null;
}
TextView textView5 = installmentViewHolder2.title;
if (textView5 != null) {
textView2 = textView5;
} else {
C14957gcv.a("");
}
textView4.setTextColor(nMh.getColor(textView2.getContext(), installmentViewHolder2.a.intValue()));
}
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ InstallmentViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
C14957gcv.e(viewGroup, "");
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559985, viewGroup, false);
C14957gcv.c(inflate, "");
return new InstallmentViewHolder(inflate, this.b);
}
/* loaded from: classes5.dex */
public final class InstallmentViewHolder_ViewBinding implements Unbinder {
private InstallmentViewHolder d;
public InstallmentViewHolder_ViewBinding(InstallmentViewHolder installmentViewHolder, View view) {
this.d = installmentViewHolder;
installmentViewHolder.title = (TextView) pyT.e(view, R.id.tv_interestrate_title, "field 'title'", TextView.class);
installmentViewHolder.value = (TextView) pyT.e(view, R.id.tv_interestrate_value, "field 'value'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
InstallmentViewHolder installmentViewHolder = this.d;
if (installmentViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.d = null;
installmentViewHolder.title = null;
installmentViewHolder.value = null;
}
}
public TierPricingInstallmentAdapter(List<WY> list, Integer num) {
C14957gcv.e(list, "");
this.e = list;
this.b = num;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
return this.e.size();
}
/* loaded from: classes5.dex */
public static final class InstallmentViewHolder extends RecyclerView.zJl {
final Integer a;
@BindView
public TextView title;
@BindView
public TextView value;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public InstallmentViewHolder(View view, Integer num) {
super(view);
C14957gcv.e(view, "");
this.a = num;
ButterKnife.c(this, view);
}
}
}