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

111 lines
4.0 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.EasycashSalesheetAdapter;
import java.util.List;
import o.LS;
import o.pyT;
/* loaded from: classes5.dex */
public final class EasycashSalesheetAdapter extends RecyclerView.Sts<EasycashSalesheetViewHolder> {
private final HBt b;
private final List<LS> e;
/* loaded from: classes5.dex */
public interface HBt {
void e(LS ls);
}
/* loaded from: classes5.dex */
public class EasycashSalesheetViewHolder_ViewBinding implements Unbinder {
private EasycashSalesheetViewHolder d;
public EasycashSalesheetViewHolder_ViewBinding(EasycashSalesheetViewHolder easycashSalesheetViewHolder, View view) {
this.d = easycashSalesheetViewHolder;
easycashSalesheetViewHolder.salesheetName = (TextView) pyT.e(view, R.id.salesheet_item_text, "field 'salesheetName'", TextView.class);
easycashSalesheetViewHolder.salesheetLine = pyT.a(view, R.id.salesheet_item_line, "field 'salesheetLine'");
}
@Override // butterknife.Unbinder
public final void a() {
EasycashSalesheetViewHolder easycashSalesheetViewHolder = this.d;
if (easycashSalesheetViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.d = null;
easycashSalesheetViewHolder.salesheetName = null;
easycashSalesheetViewHolder.salesheetLine = null;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(EasycashSalesheetViewHolder easycashSalesheetViewHolder, final int i) {
EasycashSalesheetViewHolder easycashSalesheetViewHolder2 = easycashSalesheetViewHolder;
LS ls = this.e.get(i);
boolean z = i == this.e.size() - 1;
easycashSalesheetViewHolder2.salesheetName.setText(ls.c);
if (z) {
easycashSalesheetViewHolder2.salesheetLine.setVisibility(8);
}
easycashSalesheetViewHolder2.itemView.setOnClickListener(new View.OnClickListener(this, i) { // from class: o.etF
private EasycashSalesheetAdapter d;
private int e;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
r2.b.e(this.d.e.get(this.e));
}
{
this.d = this;
this.e = i;
}
});
}
public EasycashSalesheetAdapter(List<LS> list, HBt hBt) {
this.e = list;
this.b = hBt;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
List<LS> list = this.e;
if (list != null) {
return list.size();
}
return 0;
}
/* loaded from: classes5.dex */
public class EasycashSalesheetViewHolder extends RecyclerView.zJl {
private EasycashSalesheetAdapter a;
@BindView
View salesheetLine;
@BindView
TextView salesheetName;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
EasycashSalesheetViewHolder(EasycashSalesheetAdapter easycashSalesheetAdapter, View view) {
super(view);
this.a = easycashSalesheetAdapter;
ButterKnife.c(this, view);
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ EasycashSalesheetViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
return new EasycashSalesheetViewHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559110, viewGroup, false));
}
}