what-the-bank/sources/com/scb/phone/view/adapter/easycash/IssuerSearchAdapter.java

106 lines
3.5 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.easycash;
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.easycash.IssuerSearchAdapter;
import java.util.List;
import o.C0639Le;
import o.fIU;
import o.pyT;
/* loaded from: classes5.dex */
public final class IssuerSearchAdapter extends RecyclerView.Sts<CustomViewHolder> {
public final List<C0639Le> a;
private final fIU c;
private final String d;
/* loaded from: classes5.dex */
public class CustomViewHolder_ViewBinding implements Unbinder {
private CustomViewHolder b;
public CustomViewHolder_ViewBinding(CustomViewHolder customViewHolder, View view) {
this.b = customViewHolder;
customViewHolder.description = (TextView) pyT.e(view, R.id.occupation_description, "field 'description'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
CustomViewHolder customViewHolder = this.b;
if (customViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.b = null;
customViewHolder.description = null;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(CustomViewHolder customViewHolder, final int i) {
CustomViewHolder customViewHolder2 = customViewHolder;
if (this.d.equals("th")) {
customViewHolder2.description.setText(this.a.get(i).c);
} else {
customViewHolder2.description.setText(this.a.get(i).d);
}
customViewHolder2.itemView.setOnClickListener(new View.OnClickListener(this, i) { // from class: o.etG
private int a;
private IssuerSearchAdapter b;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
IssuerSearchAdapter.b(this.b, this.a);
}
{
this.b = this;
this.a = i;
}
});
}
public IssuerSearchAdapter(List<C0639Le> list, fIU fiu, String str) {
this.a = list;
this.c = fiu;
this.d = str;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
return this.a.size();
}
/* loaded from: classes5.dex */
class CustomViewHolder extends RecyclerView.zJl {
private IssuerSearchAdapter d;
@BindView
TextView description;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
CustomViewHolder(IssuerSearchAdapter issuerSearchAdapter, View view) {
super(view);
this.d = issuerSearchAdapter;
ButterKnife.c(this, view);
}
}
public static /* synthetic */ void b(IssuerSearchAdapter issuerSearchAdapter, int i) {
fIU fiu = issuerSearchAdapter.c;
if (fiu != null) {
fiu.b(i);
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ CustomViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
return new CustomViewHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559194, viewGroup, false));
}
}