126 lines
4.4 KiB
Java
126 lines
4.4 KiB
Java
|
package com.scb.phone.view.adapter.etb;
|
||
|
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.LinearLayout;
|
||
|
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.etb.ETBSaleSheetSubAccountAdapter;
|
||
|
import java.util.List;
|
||
|
import o.pyT;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class ETBSaleSheetSubAccountAdapter extends RecyclerView.Sts<ETBSaleSheetHolder> {
|
||
|
private List<? extends IeS> a;
|
||
|
private LWm c;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public interface IeS {
|
||
|
String a();
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public interface LWm {
|
||
|
void e(IeS ieS);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class ETBSaleSheetHolder_ViewBinding implements Unbinder {
|
||
|
private ETBSaleSheetHolder d;
|
||
|
|
||
|
public ETBSaleSheetHolder_ViewBinding(ETBSaleSheetHolder eTBSaleSheetHolder, View view) {
|
||
|
this.d = eTBSaleSheetHolder;
|
||
|
eTBSaleSheetHolder.container = (LinearLayout) pyT.a(view, R.id.view_container, "field 'container'", LinearLayout.class);
|
||
|
eTBSaleSheetHolder.titleName = (TextView) pyT.e(view, R.id.title_name, "field 'titleName'", TextView.class);
|
||
|
eTBSaleSheetHolder.divider = pyT.a(view, R.id.divider_view, "field 'divider'");
|
||
|
}
|
||
|
|
||
|
@Override // butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
ETBSaleSheetHolder eTBSaleSheetHolder = this.d;
|
||
|
if (eTBSaleSheetHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.d = null;
|
||
|
eTBSaleSheetHolder.container = null;
|
||
|
eTBSaleSheetHolder.titleName = null;
|
||
|
eTBSaleSheetHolder.divider = null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ void onBindViewHolder(ETBSaleSheetHolder eTBSaleSheetHolder, final int i) {
|
||
|
ETBSaleSheetHolder eTBSaleSheetHolder2 = eTBSaleSheetHolder;
|
||
|
if (i == this.a.size() - 1) {
|
||
|
eTBSaleSheetHolder2.divider.setVisibility(4);
|
||
|
} else {
|
||
|
eTBSaleSheetHolder2.divider.setVisibility(0);
|
||
|
}
|
||
|
eTBSaleSheetHolder2.titleName.setText(this.a.get(i).a());
|
||
|
if (eTBSaleSheetHolder2.container != null) {
|
||
|
eTBSaleSheetHolder2.container.setOnClickListener(new View.OnClickListener(this, i) { // from class: o.eum
|
||
|
private int a;
|
||
|
private ETBSaleSheetSubAccountAdapter e;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view) {
|
||
|
ETBSaleSheetSubAccountAdapter.d(this.e, this.a);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.e = this;
|
||
|
this.a = i;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public ETBSaleSheetSubAccountAdapter(List<? extends IeS> list, LWm lWm) {
|
||
|
this.a = list;
|
||
|
this.c = lWm;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final int getItemCount() {
|
||
|
return this.a.size();
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
class ETBSaleSheetHolder extends RecyclerView.zJl {
|
||
|
|
||
|
@BindView
|
||
|
LinearLayout container;
|
||
|
|
||
|
@BindView
|
||
|
View divider;
|
||
|
private ETBSaleSheetSubAccountAdapter e;
|
||
|
|
||
|
@BindView
|
||
|
TextView titleName;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
ETBSaleSheetHolder(ETBSaleSheetSubAccountAdapter eTBSaleSheetSubAccountAdapter, View view) {
|
||
|
super(view);
|
||
|
this.e = eTBSaleSheetSubAccountAdapter;
|
||
|
ButterKnife.c(this, view);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void d(ETBSaleSheetSubAccountAdapter eTBSaleSheetSubAccountAdapter, int i) {
|
||
|
LWm lWm = eTBSaleSheetSubAccountAdapter.c;
|
||
|
if (lWm != null) {
|
||
|
lWm.e(eTBSaleSheetSubAccountAdapter.a.get(i));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ ETBSaleSheetHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||
|
return new ETBSaleSheetHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559116, viewGroup, false));
|
||
|
}
|
||
|
}
|