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

122 lines
4.1 KiB
Java
Raw Permalink 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.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.easycash.AdditionDocumentAdapter;
import java.util.List;
import o.C0632La;
import o.pyT;
/* loaded from: classes5.dex */
public final class AdditionDocumentAdapter extends RecyclerView.Sts<DocumentViewHolder> {
private List<C0632La> d;
private Sts e;
@FunctionalInterface
/* loaded from: classes5.dex */
public interface Sts {
void c(String str);
}
/* loaded from: classes5.dex */
public class DocumentViewHolder_ViewBinding implements Unbinder {
private DocumentViewHolder e;
public DocumentViewHolder_ViewBinding(DocumentViewHolder documentViewHolder, View view) {
this.e = documentViewHolder;
documentViewHolder.documentDes = (TextView) pyT.e(view, R.id.document_type, "field 'documentDes'", TextView.class);
documentViewHolder.imageName = (TextView) pyT.e(view, R.id.image_name, "field 'imageName'", TextView.class);
documentViewHolder.deleteButton = (ImageView) pyT.e(view, R.id.delete_image_view, "field 'deleteButton'", ImageView.class);
}
@Override // butterknife.Unbinder
public final void a() {
DocumentViewHolder documentViewHolder = this.e;
if (documentViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.e = null;
documentViewHolder.documentDes = null;
documentViewHolder.imageName = null;
documentViewHolder.deleteButton = null;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(DocumentViewHolder documentViewHolder, final int i) {
DocumentViewHolder documentViewHolder2 = documentViewHolder;
final C0632La c0632La = this.d.get(i);
documentViewHolder2.documentDes.setText(c0632La.c);
documentViewHolder2.imageName.setText(c0632La.e);
documentViewHolder2.deleteButton.setOnClickListener(new View.OnClickListener(this, i, c0632La) { // from class: o.etf
private int a;
private C0632La c;
private AdditionDocumentAdapter e;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
AdditionDocumentAdapter.d(this.e, this.c);
}
{
this.e = this;
this.a = i;
this.c = c0632La;
}
});
}
public AdditionDocumentAdapter(List<C0632La> list, Sts sts) {
this.d = list;
this.e = sts;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
List<C0632La> list = this.d;
if (list == null) {
return 0;
}
return list.size();
}
/* loaded from: classes5.dex */
static class DocumentViewHolder extends RecyclerView.zJl {
@BindView
ImageView deleteButton;
@BindView
TextView documentDes;
@BindView
TextView imageName;
DocumentViewHolder(View view) {
super(view);
ButterKnife.c(this, view);
}
}
public static /* synthetic */ void d(AdditionDocumentAdapter additionDocumentAdapter, C0632La c0632La) {
String str = c0632La.d;
Sts sts = additionDocumentAdapter.e;
if (sts != null) {
sts.c(str);
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ DocumentViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
return new DocumentViewHolder(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559056, viewGroup, false));
}
}