what-the-bank/sources/com/scb/phone/view/adapter/loan/SmeLoanAccountSelectorAdapt...

121 lines
4.2 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.loan;
import android.text.TextUtils;
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.scb.phone.R;
import com.squareup.picasso.Picasso;
import java.util.ArrayList;
import java.util.List;
import o.C0390Fm;
import o.WYJ;
import o.pyT;
/* loaded from: classes5.dex */
public final class SmeLoanAccountSelectorAdapter extends WYJ {
private List<C0390Fm> e;
@Override // o.WYJ
public final boolean isViewFromObject(View view, Object obj) {
return view == obj;
}
/* loaded from: classes5.dex */
public class ItemViewHolder_ViewBinding implements Unbinder {
private ItemViewHolder c;
public ItemViewHolder_ViewBinding(ItemViewHolder itemViewHolder, View view) {
this.c = itemViewHolder;
itemViewHolder.imageAccountIcon = (ImageView) pyT.e(view, R.id.image_account_icon, "field 'imageAccountIcon'", ImageView.class);
itemViewHolder.textAccountNumber = (TextView) pyT.e(view, R.id.text_account_number, "field 'textAccountNumber'", TextView.class);
itemViewHolder.textAccountName = (TextView) pyT.e(view, R.id.text_account_name, "field 'textAccountName'", TextView.class);
itemViewHolder.textBalanceTitle = (TextView) pyT.e(view, R.id.text_balance_title, "field 'textBalanceTitle'", TextView.class);
itemViewHolder.textBalance = (TextView) pyT.e(view, R.id.text_balance, "field 'textBalance'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
ItemViewHolder itemViewHolder = this.c;
if (itemViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.c = null;
itemViewHolder.imageAccountIcon = null;
itemViewHolder.textAccountNumber = null;
itemViewHolder.textAccountName = null;
itemViewHolder.textBalanceTitle = null;
itemViewHolder.textBalance = null;
}
}
public SmeLoanAccountSelectorAdapter(List<C0390Fm> list) {
this.e = list == null ? new ArrayList<>() : list;
}
@Override // o.WYJ
public final int getCount() {
return this.e.size();
}
@Override // o.WYJ
public final void destroyItem(ViewGroup viewGroup, int i, Object obj) {
viewGroup.removeView((View) obj);
}
@Override // o.WYJ
public final Object instantiateItem(ViewGroup viewGroup, int i) {
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559223, viewGroup, false);
ItemViewHolder itemViewHolder = new ItemViewHolder(this, inflate);
C0390Fm c0390Fm = itemViewHolder.a.e.get(i);
String str = c0390Fm.a;
if (TextUtils.isEmpty(str)) {
str = c0390Fm.b;
}
if (!TextUtils.isEmpty(c0390Fm.w)) {
Picasso.d().e(c0390Fm.w).aBu_(itemViewHolder.imageAccountIcon, null);
}
itemViewHolder.textAccountName.setText(str);
itemViewHolder.textAccountNumber.setText(c0390Fm.c);
itemViewHolder.textBalanceTitle.setText(c0390Fm.k);
itemViewHolder.textBalance.setText(c0390Fm.f8174o);
viewGroup.addView(inflate, 0);
return inflate;
}
/* loaded from: classes5.dex */
class ItemViewHolder extends RecyclerView.zJl {
final SmeLoanAccountSelectorAdapter a;
private View e;
@BindView
ImageView imageAccountIcon;
@BindView
TextView textAccountName;
@BindView
TextView textAccountNumber;
@BindView
TextView textBalance;
@BindView
TextView textBalanceTitle;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
ItemViewHolder(SmeLoanAccountSelectorAdapter smeLoanAccountSelectorAdapter, View view) {
super(view);
this.a = smeLoanAccountSelectorAdapter;
this.e = view;
ButterKnife.c(this, view);
}
}
}