243 lines
8.8 KiB
Java
243 lines
8.8 KiB
Java
|
package com.scb.phone.view.adapter.prepaid;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.graphics.drawable.Drawable;
|
||
|
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.bumptech.glide.Glide;
|
||
|
import com.scb.phone.R;
|
||
|
import java.util.List;
|
||
|
import o.C10456eEq;
|
||
|
import o.C14957gcv;
|
||
|
import o.Cdw;
|
||
|
import o.PNS;
|
||
|
import o.UA;
|
||
|
import o.pyT;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class PrepaidTravelWalletTopupAdapter extends RecyclerView.Sts<RecyclerView.zJl> {
|
||
|
public List<UA> d;
|
||
|
private final Context e;
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final int getItemViewType(int i) {
|
||
|
return i == 0 ? 1 : 2;
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class OtherWalletViewHolder_ViewBinding implements Unbinder {
|
||
|
private OtherWalletViewHolder e;
|
||
|
|
||
|
public OtherWalletViewHolder_ViewBinding(OtherWalletViewHolder otherWalletViewHolder, View view) {
|
||
|
this.e = otherWalletViewHolder;
|
||
|
otherWalletViewHolder.ivTopUpFlag = (ImageView) pyT.e(view, R.id.ivTopUpFlag, "field 'ivTopUpFlag'", ImageView.class);
|
||
|
otherWalletViewHolder.tvOtherTopupCurrency = (TextView) pyT.e(view, R.id.tvOtherTopupCurrency, "field 'tvOtherTopupCurrency'", TextView.class);
|
||
|
otherWalletViewHolder.tvOtherTopupCurrencyAmount = (TextView) pyT.e(view, R.id.tvOtherTopupCurrencyAmount, "field 'tvOtherTopupCurrencyAmount'", TextView.class);
|
||
|
otherWalletViewHolder.tvOtherTopupCurrencyName = (TextView) pyT.e(view, R.id.tvOtherTopupCurrencyName, "field 'tvOtherTopupCurrencyName'", TextView.class);
|
||
|
otherWalletViewHolder.tvThbCurrencyAmount = (TextView) pyT.e(view, R.id.tvThbCurrencyAmount, "field 'tvThbCurrencyAmount'", TextView.class);
|
||
|
}
|
||
|
|
||
|
@Override // butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
OtherWalletViewHolder otherWalletViewHolder = this.e;
|
||
|
if (otherWalletViewHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.e = null;
|
||
|
otherWalletViewHolder.ivTopUpFlag = null;
|
||
|
otherWalletViewHolder.tvOtherTopupCurrency = null;
|
||
|
otherWalletViewHolder.tvOtherTopupCurrencyAmount = null;
|
||
|
otherWalletViewHolder.tvOtherTopupCurrencyName = null;
|
||
|
otherWalletViewHolder.tvThbCurrencyAmount = null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class ThaiWalletViewHolder_ViewBinding implements Unbinder {
|
||
|
private ThaiWalletViewHolder b;
|
||
|
|
||
|
public ThaiWalletViewHolder_ViewBinding(ThaiWalletViewHolder thaiWalletViewHolder, View view) {
|
||
|
this.b = thaiWalletViewHolder;
|
||
|
thaiWalletViewHolder.tvThaiCurrencyAmount = (TextView) pyT.e(view, R.id.tvThaiCurrencyAmount, "field 'tvThaiCurrencyAmount'", TextView.class);
|
||
|
thaiWalletViewHolder.ivThaiCurrencyFlag = (ImageView) pyT.e(view, R.id.icThaiCurrencyFlag, "field 'ivThaiCurrencyFlag'", ImageView.class);
|
||
|
}
|
||
|
|
||
|
@Override // butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
ThaiWalletViewHolder thaiWalletViewHolder = this.b;
|
||
|
if (thaiWalletViewHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.b = null;
|
||
|
thaiWalletViewHolder.tvThaiCurrencyAmount = null;
|
||
|
thaiWalletViewHolder.ivThaiCurrencyFlag = null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public PrepaidTravelWalletTopupAdapter(Context context) {
|
||
|
C14957gcv.e(context, "");
|
||
|
this.e = context;
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class HBt {
|
||
|
private HBt() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ HBt(byte b) {
|
||
|
this();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final RecyclerView.zJl onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||
|
C14957gcv.e(viewGroup, "");
|
||
|
if (i == 1) {
|
||
|
C14957gcv.e(viewGroup, "");
|
||
|
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131560040, viewGroup, false);
|
||
|
C14957gcv.c(inflate, "");
|
||
|
return new ThaiWalletViewHolder(inflate);
|
||
|
}
|
||
|
C14957gcv.e(viewGroup, "");
|
||
|
View inflate2 = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131560039, viewGroup, false);
|
||
|
C14957gcv.c(inflate2, "");
|
||
|
return new OtherWalletViewHolder(inflate2);
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final void onBindViewHolder(RecyclerView.zJl zjl, int i) {
|
||
|
C14957gcv.e(zjl, "");
|
||
|
TextView textView = null;
|
||
|
if (zjl instanceof OtherWalletViewHolder) {
|
||
|
OtherWalletViewHolder otherWalletViewHolder = (OtherWalletViewHolder) zjl;
|
||
|
List<UA> list = this.d;
|
||
|
if (list == null) {
|
||
|
C14957gcv.a("");
|
||
|
list = null;
|
||
|
}
|
||
|
UA ua = list.get(i);
|
||
|
C14957gcv.e(ua, "");
|
||
|
ImageView imageView = otherWalletViewHolder.ivTopUpFlag;
|
||
|
if (imageView == null) {
|
||
|
C14957gcv.a("");
|
||
|
imageView = null;
|
||
|
}
|
||
|
C10456eEq.aqe_(imageView, ua.h, new PNS().c(R.color.f3412131099849));
|
||
|
TextView textView2 = otherWalletViewHolder.tvOtherTopupCurrencyName;
|
||
|
if (textView2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView2 = null;
|
||
|
}
|
||
|
textView2.setText(ua.e);
|
||
|
TextView textView3 = otherWalletViewHolder.tvOtherTopupCurrency;
|
||
|
if (textView3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView3 = null;
|
||
|
}
|
||
|
textView3.setText(ua.e);
|
||
|
TextView textView4 = otherWalletViewHolder.tvOtherTopupCurrencyAmount;
|
||
|
if (textView4 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView4 = null;
|
||
|
}
|
||
|
textView4.setText(ua.b);
|
||
|
TextView textView5 = otherWalletViewHolder.tvThbCurrencyAmount;
|
||
|
if (textView5 != null) {
|
||
|
textView = textView5;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
textView.setText(ua.f);
|
||
|
return;
|
||
|
}
|
||
|
if (zjl instanceof ThaiWalletViewHolder) {
|
||
|
ThaiWalletViewHolder thaiWalletViewHolder = (ThaiWalletViewHolder) zjl;
|
||
|
List<UA> list2 = this.d;
|
||
|
if (list2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
list2 = null;
|
||
|
}
|
||
|
UA ua2 = list2.get(i);
|
||
|
C14957gcv.e(ua2, "");
|
||
|
Cdw<Drawable> c = Glide.e(thaiWalletViewHolder.itemView.getContext()).c(ua2.h);
|
||
|
ImageView imageView2 = thaiWalletViewHolder.ivThaiCurrencyFlag;
|
||
|
if (imageView2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
imageView2 = null;
|
||
|
}
|
||
|
c.Dq_(imageView2);
|
||
|
TextView textView6 = thaiWalletViewHolder.tvThaiCurrencyAmount;
|
||
|
if (textView6 != null) {
|
||
|
textView = textView6;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
textView.setText(ua2.b);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final int getItemCount() {
|
||
|
List<UA> list = this.d;
|
||
|
if (list == null) {
|
||
|
C14957gcv.a("");
|
||
|
list = null;
|
||
|
}
|
||
|
return list.size();
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class ThaiWalletViewHolder extends RecyclerView.zJl {
|
||
|
|
||
|
@BindView
|
||
|
public ImageView ivThaiCurrencyFlag;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvThaiCurrencyAmount;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
public ThaiWalletViewHolder(View view) {
|
||
|
super(view);
|
||
|
C14957gcv.e(view, "");
|
||
|
ButterKnife.c(this, view);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class OtherWalletViewHolder extends RecyclerView.zJl {
|
||
|
|
||
|
@BindView
|
||
|
public ImageView ivTopUpFlag;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvOtherTopupCurrency;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvOtherTopupCurrencyAmount;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvOtherTopupCurrencyName;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvThbCurrencyAmount;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
public OtherWalletViewHolder(View view) {
|
||
|
super(view);
|
||
|
C14957gcv.e(view, "");
|
||
|
ButterKnife.c(this, view);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
static {
|
||
|
new HBt((byte) 0);
|
||
|
}
|
||
|
}
|