111 lines
4.2 KiB
Java
111 lines
4.2 KiB
Java
|
package com.scb.phone.view.adapter.closeaccount;
|
||
|
|
||
|
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.scb.phone.view.adapter.closeaccount.AccountTargetAdapter;
|
||
|
import java.util.List;
|
||
|
import o.C12891fKc;
|
||
|
import o.C16413oD;
|
||
|
import o.fIU;
|
||
|
import o.nMh;
|
||
|
import o.pyT;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class AccountTargetAdapter extends RecyclerView.Sts<AccountViewHolder> {
|
||
|
private fIU a;
|
||
|
public List<C16413oD> d;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class AccountViewHolder_ViewBinding implements Unbinder {
|
||
|
private AccountViewHolder b;
|
||
|
|
||
|
public AccountViewHolder_ViewBinding(AccountViewHolder accountViewHolder, View view) {
|
||
|
this.b = accountViewHolder;
|
||
|
accountViewHolder.textTitle = (TextView) pyT.e(view, R.id.text_title, "field 'textTitle'", TextView.class);
|
||
|
accountViewHolder.textSubtitle = (TextView) pyT.e(view, R.id.text_subtitle, "field 'textSubtitle'", TextView.class);
|
||
|
accountViewHolder.imageIcon = (ImageView) pyT.e(view, R.id.image_icon, "field 'imageIcon'", ImageView.class);
|
||
|
}
|
||
|
|
||
|
@Override // butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
AccountViewHolder accountViewHolder = this.b;
|
||
|
if (accountViewHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.b = null;
|
||
|
accountViewHolder.textTitle = null;
|
||
|
accountViewHolder.textSubtitle = null;
|
||
|
accountViewHolder.imageIcon = null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ void onBindViewHolder(AccountViewHolder accountViewHolder, final int i) {
|
||
|
AccountViewHolder accountViewHolder2 = accountViewHolder;
|
||
|
C16413oD c16413oD = this.d.get(i);
|
||
|
accountViewHolder2.textTitle.setText(c16413oD.c());
|
||
|
TextView textView = accountViewHolder2.textSubtitle;
|
||
|
System.identityHashCode(c16413oD);
|
||
|
textView.setText((String) C16413oD.d(new Object[]{c16413oD}));
|
||
|
C12891fKc.azg_(accountViewHolder2.imageIcon.getContext(), nMh.getDrawable(accountViewHolder2.imageIcon.getContext(), R.drawable.bankicon_place_holder), accountViewHolder2.imageIcon, c16413oD.b(), accountViewHolder2.imageIcon.getContext().getResources().getDimensionPixelOffset(R.dimen.f15222131165286), nMh.getColor(accountViewHolder2.imageIcon.getContext(), R.color.f3412131099849));
|
||
|
accountViewHolder2.itemView.setOnClickListener(new View.OnClickListener(this, i) { // from class: o.esl
|
||
|
private int c;
|
||
|
private AccountTargetAdapter e;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view) {
|
||
|
this.e.a.b(this.c);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.e = this;
|
||
|
this.c = i;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
public AccountTargetAdapter(List<C16413oD> list, fIU fiu) {
|
||
|
this.d = list;
|
||
|
this.a = fiu;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final int getItemCount() {
|
||
|
return this.d.size();
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
class AccountViewHolder extends RecyclerView.zJl {
|
||
|
private AccountTargetAdapter c;
|
||
|
|
||
|
@BindView
|
||
|
ImageView imageIcon;
|
||
|
|
||
|
@BindView
|
||
|
TextView textSubtitle;
|
||
|
|
||
|
@BindView
|
||
|
TextView textTitle;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
AccountViewHolder(AccountTargetAdapter accountTargetAdapter, View view) {
|
||
|
super(view);
|
||
|
this.c = accountTargetAdapter;
|
||
|
ButterKnife.c(this, view);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ AccountViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||
|
return new AccountViewHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559384, viewGroup, false));
|
||
|
}
|
||
|
}
|