what-the-bank/sources/com/scb/phone/view/adapter/demontb/OccupationAdapter.java

100 lines
3.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.demontb;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
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.demontb.OccupationAdapter;
import com.scb.phone.view.custom.common.ThaiTextView;
import java.util.List;
import o.C0987Tb;
import o.fIU;
import o.pyT;
/* loaded from: classes5.dex */
public final class OccupationAdapter extends RecyclerView.Sts<CustomViewHolder> {
public final List<C0987Tb> a;
private final fIU 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 = (ThaiTextView) pyT.e(view, R.id.occupation_description, "field 'description'", ThaiTextView.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;
customViewHolder2.description.setText(this.a.get(i).i);
customViewHolder2.itemView.setOnClickListener(new View.OnClickListener(this, i) { // from class: o.esR
private OccupationAdapter d;
private int e;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
OccupationAdapter.d(this.d, this.e);
}
{
this.d = this;
this.e = i;
}
});
}
public OccupationAdapter(List<C0987Tb> list, fIU fiu) {
this.a = list;
this.d = fiu;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
return this.a.size();
}
/* loaded from: classes5.dex */
class CustomViewHolder extends RecyclerView.zJl {
private OccupationAdapter a;
@BindView
ThaiTextView description;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
CustomViewHolder(OccupationAdapter occupationAdapter, View view) {
super(view);
this.a = occupationAdapter;
ButterKnife.c(this, view);
}
}
public static /* synthetic */ void d(OccupationAdapter occupationAdapter, int i) {
fIU fiu = occupationAdapter.d;
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));
}
}