what-the-bank/sources/com/scb/phone/view/adapter/registration/RegistrationCountrySearchAd...

118 lines
4.6 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.registration;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
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.registration.RegistrationCountrySearchAdapter;
import java.util.List;
import o.C1102Vr;
import o.C14851gaI;
import o.C14866gag;
import o.C14957gcv;
import o.InterfaceC14894gbR;
import o.pyT;
/* loaded from: classes5.dex */
public final class RegistrationCountrySearchAdapter extends RecyclerView.Sts<CountryItemViewHolder> {
public List<C1102Vr> a;
private final InterfaceC14894gbR<C1102Vr, C14866gag> d;
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(CountryItemViewHolder countryItemViewHolder, int i) {
final CountryItemViewHolder countryItemViewHolder2 = countryItemViewHolder;
C14957gcv.e(countryItemViewHolder2, "");
final C1102Vr c1102Vr = this.a.get(i);
C14957gcv.e(c1102Vr, "");
countryItemViewHolder2.itemView.setOnClickListener(new View.OnClickListener(countryItemViewHolder2, c1102Vr) { // from class: o.eyl
private C1102Vr b;
private RegistrationCountrySearchAdapter.CountryItemViewHolder e;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
RegistrationCountrySearchAdapter.CountryItemViewHolder.d(this.e, this.b);
}
{
this.e = countryItemViewHolder2;
this.b = c1102Vr;
}
});
TextView textView = countryItemViewHolder2.countryNameTextView;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setText(c1102Vr.c);
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ CountryItemViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
C14957gcv.e(viewGroup, "");
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131558980, viewGroup, false);
C14957gcv.c(inflate, "");
return new CountryItemViewHolder(inflate, this.d);
}
/* JADX WARN: Multi-variable type inference failed */
public RegistrationCountrySearchAdapter(InterfaceC14894gbR<? super C1102Vr, C14866gag> interfaceC14894gbR) {
C14957gcv.e(interfaceC14894gbR, "");
this.d = interfaceC14894gbR;
this.a = C14851gaI.c;
}
/* loaded from: classes5.dex */
public final class CountryItemViewHolder_ViewBinding implements Unbinder {
private CountryItemViewHolder c;
public CountryItemViewHolder_ViewBinding(CountryItemViewHolder countryItemViewHolder, View view) {
this.c = countryItemViewHolder;
countryItemViewHolder.countryNameTextView = (TextView) pyT.e(view, R.id.tv_country_name, "field 'countryNameTextView'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
CountryItemViewHolder countryItemViewHolder = this.c;
if (countryItemViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.c = null;
countryItemViewHolder.countryNameTextView = null;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
return this.a.size();
}
/* loaded from: classes5.dex */
public static final class CountryItemViewHolder extends RecyclerView.zJl {
private final InterfaceC14894gbR<C1102Vr, C14866gag> c;
@BindView
public TextView countryNameTextView;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
public CountryItemViewHolder(View view, InterfaceC14894gbR<? super C1102Vr, C14866gag> interfaceC14894gbR) {
super(view);
C14957gcv.e(view, "");
C14957gcv.e(interfaceC14894gbR, "");
this.c = interfaceC14894gbR;
ButterKnife.c(this, view);
}
public static /* synthetic */ void d(CountryItemViewHolder countryItemViewHolder, C1102Vr c1102Vr) {
C14957gcv.e(countryItemViewHolder, "");
C14957gcv.e(c1102Vr, "");
countryItemViewHolder.c.invoke(c1102Vr);
}
}
}