138 lines
4.9 KiB
Java
138 lines
4.9 KiB
Java
|
package com.scb.phone.view.adapter.transferandpay.transfer;
|
||
|
|
||
|
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.scb.phone.R;
|
||
|
import com.scb.phone.view.adapter.transferandpay.transfer.TransferToMeStep1Adapter;
|
||
|
import java.util.List;
|
||
|
import o.C1233Yp;
|
||
|
import o.C12891fKc;
|
||
|
import o.nMh;
|
||
|
import o.pyT;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class TransferToMeStep1Adapter extends RecyclerView.Sts<LocalViewHolder> {
|
||
|
public IeS c;
|
||
|
public List<C1233Yp> d;
|
||
|
private boolean e = false;
|
||
|
|
||
|
@FunctionalInterface
|
||
|
/* loaded from: classes5.dex */
|
||
|
public interface IeS {
|
||
|
void b(C1233Yp c1233Yp);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class LocalViewHolder_ViewBinding implements Unbinder {
|
||
|
private LocalViewHolder b;
|
||
|
|
||
|
public LocalViewHolder_ViewBinding(LocalViewHolder localViewHolder, View view) {
|
||
|
this.b = localViewHolder;
|
||
|
localViewHolder.textTitle = (TextView) pyT.e(view, R.id.text_title, "field 'textTitle'", TextView.class);
|
||
|
localViewHolder.textSubtitle = (TextView) pyT.e(view, R.id.text_subtitle, "field 'textSubtitle'", TextView.class);
|
||
|
localViewHolder.imageIcon = (ImageView) pyT.e(view, R.id.image_icon, "field 'imageIcon'", ImageView.class);
|
||
|
}
|
||
|
|
||
|
@Override // butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
LocalViewHolder localViewHolder = this.b;
|
||
|
if (localViewHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.b = null;
|
||
|
localViewHolder.textTitle = null;
|
||
|
localViewHolder.textSubtitle = null;
|
||
|
localViewHolder.imageIcon = null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ void onBindViewHolder(LocalViewHolder localViewHolder, int i) {
|
||
|
LocalViewHolder localViewHolder2 = localViewHolder;
|
||
|
final C1233Yp c1233Yp = this.d.get(i);
|
||
|
localViewHolder2.textTitle.setText(c1233Yp.c);
|
||
|
localViewHolder2.textSubtitle.setText(c1233Yp.b);
|
||
|
String str = c1233Yp.e;
|
||
|
Context context = localViewHolder2.e;
|
||
|
C12891fKc.azg_(context, localViewHolder2.c, localViewHolder2.imageIcon, str, context.getResources().getDimensionPixelOffset(R.dimen.f15222131165286), nMh.getColor(localViewHolder2.e, R.color.f3412131099849));
|
||
|
localViewHolder2.itemView.setOnClickListener(new View.OnClickListener(this, c1233Yp) { // from class: o.ezX
|
||
|
private C1233Yp c;
|
||
|
private TransferToMeStep1Adapter e;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view) {
|
||
|
TransferToMeStep1Adapter.e(this.e, this.c);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.e = this;
|
||
|
this.c = c1233Yp;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
public TransferToMeStep1Adapter(List<C1233Yp> list) {
|
||
|
this.d = list;
|
||
|
}
|
||
|
|
||
|
public TransferToMeStep1Adapter(List<C1233Yp> list, byte b) {
|
||
|
this.d = list;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final int getItemCount() {
|
||
|
List<C1233Yp> list = this.d;
|
||
|
if (list == null) {
|
||
|
return 0;
|
||
|
}
|
||
|
return list.size();
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
class LocalViewHolder extends RecyclerView.zJl {
|
||
|
private TransferToMeStep1Adapter a;
|
||
|
Drawable c;
|
||
|
final Context e;
|
||
|
|
||
|
@BindView
|
||
|
ImageView imageIcon;
|
||
|
|
||
|
@BindView
|
||
|
TextView textSubtitle;
|
||
|
|
||
|
@BindView
|
||
|
TextView textTitle;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
LocalViewHolder(TransferToMeStep1Adapter transferToMeStep1Adapter, View view) {
|
||
|
super(view);
|
||
|
this.a = transferToMeStep1Adapter;
|
||
|
ButterKnife.c(this, view);
|
||
|
Context context = view.getContext();
|
||
|
this.e = context;
|
||
|
this.c = nMh.getDrawable(context, R.drawable.bankicon_place_holder);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void e(TransferToMeStep1Adapter transferToMeStep1Adapter, C1233Yp c1233Yp) {
|
||
|
IeS ieS = transferToMeStep1Adapter.c;
|
||
|
if (ieS != null) {
|
||
|
ieS.b(c1233Yp);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ LocalViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||
|
return new LocalViewHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(this.e ? R.layout.2131559384 : R.layout.2131559385, viewGroup, false));
|
||
|
}
|
||
|
}
|