96 lines
3.2 KiB
Java
96 lines
3.2 KiB
Java
|
package o;
|
||
|
|
||
|
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 com.scb.phone.view.activity.prepaid.AddNewCurrencyViewHolder;
|
||
|
import java.util.ArrayList;
|
||
|
|
||
|
/* renamed from: o.ehA, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class C11530ehA extends RecyclerView.Sts<AddNewCurrencyViewHolder> {
|
||
|
private LWm a;
|
||
|
private ArrayList<UA> e;
|
||
|
|
||
|
/* renamed from: o.ehA$LWm */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public interface LWm {
|
||
|
void d(UA ua);
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ void onBindViewHolder(AddNewCurrencyViewHolder addNewCurrencyViewHolder, final int i) {
|
||
|
AddNewCurrencyViewHolder addNewCurrencyViewHolder2 = addNewCurrencyViewHolder;
|
||
|
C14957gcv.e(addNewCurrencyViewHolder2, "");
|
||
|
UA ua = this.e.get(i);
|
||
|
C14957gcv.c(ua, "");
|
||
|
UA ua2 = ua;
|
||
|
C14957gcv.e(ua2, "");
|
||
|
TextView textView = addNewCurrencyViewHolder2.tvCode;
|
||
|
ImageView imageView = null;
|
||
|
if (textView == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView = null;
|
||
|
}
|
||
|
textView.setText(ua2.e);
|
||
|
TextView textView2 = addNewCurrencyViewHolder2.tvName;
|
||
|
if (textView2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView2 = null;
|
||
|
}
|
||
|
textView2.setText(ua2.c);
|
||
|
ImageView imageView2 = addNewCurrencyViewHolder2.ivIcon;
|
||
|
if (imageView2 != null) {
|
||
|
imageView = imageView2;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
C10456eEq.aqe_(imageView, ua2.h, new PNS().c(com.scb.phone.R.color.f3412131099849));
|
||
|
addNewCurrencyViewHolder2.itemView.setOnClickListener(new View.OnClickListener(this, i) { // from class: o.ehC
|
||
|
private C11530ehA c;
|
||
|
private int d;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view) {
|
||
|
C11530ehA.b(this.c, this.d);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = this;
|
||
|
this.d = i;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ AddNewCurrencyViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||
|
C14957gcv.e(viewGroup, "");
|
||
|
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(com.scb.phone.R.layout.2131560032, viewGroup, false);
|
||
|
C14957gcv.c(inflate, "");
|
||
|
return new AddNewCurrencyViewHolder(inflate);
|
||
|
}
|
||
|
|
||
|
public C11530ehA(ArrayList<UA> arrayList, LWm lWm) {
|
||
|
C14957gcv.e(arrayList, "");
|
||
|
C14957gcv.e(lWm, "");
|
||
|
this.e = arrayList;
|
||
|
this.a = lWm;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final int getItemCount() {
|
||
|
return this.e.size();
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void b(C11530ehA c11530ehA, int i) {
|
||
|
C14957gcv.e(c11530ehA, "");
|
||
|
LWm lWm = c11530ehA.a;
|
||
|
UA ua = c11530ehA.e.get(i);
|
||
|
C14957gcv.c(ua, "");
|
||
|
lWm.d(ua);
|
||
|
}
|
||
|
}
|