115 lines
4.7 KiB
Java
115 lines
4.7 KiB
Java
package com.scb.phone.view.adapter.easycash;
|
|
|
|
import android.content.Context;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.TextView;
|
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
|
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.C14957gcv;
|
|
import o.LZ;
|
|
import o.pyT;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class EasycashSalesheetHeaderAdapter extends RecyclerView.Sts<EasycashSalesheetHeaderViewHolder> {
|
|
private final Context b;
|
|
private final EasycashSalesheetAdapter.HBt d;
|
|
private final List<LZ> e;
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final /* synthetic */ void onBindViewHolder(EasycashSalesheetHeaderViewHolder easycashSalesheetHeaderViewHolder, int i) {
|
|
EasycashSalesheetHeaderViewHolder easycashSalesheetHeaderViewHolder2 = easycashSalesheetHeaderViewHolder;
|
|
C14957gcv.e(easycashSalesheetHeaderViewHolder2, "");
|
|
LZ lz = this.e.get(i);
|
|
C14957gcv.e(lz, "");
|
|
TextView textView = easycashSalesheetHeaderViewHolder2.title;
|
|
RecyclerView recyclerView = null;
|
|
if (textView == null) {
|
|
C14957gcv.a("");
|
|
textView = null;
|
|
}
|
|
textView.setText(lz.c);
|
|
EasycashSalesheetAdapter easycashSalesheetAdapter = new EasycashSalesheetAdapter(lz.a, easycashSalesheetHeaderViewHolder2.a.d);
|
|
RecyclerView recyclerView2 = easycashSalesheetHeaderViewHolder2.salesheetList;
|
|
if (recyclerView2 != null) {
|
|
recyclerView = recyclerView2;
|
|
} else {
|
|
C14957gcv.a("");
|
|
}
|
|
recyclerView.getContext();
|
|
recyclerView.setLayoutManager(new LinearLayoutManager());
|
|
recyclerView.setHasFixedSize(true);
|
|
recyclerView.setAdapter(easycashSalesheetAdapter);
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final /* synthetic */ EasycashSalesheetHeaderViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
|
|
C14957gcv.e(viewGroup, "");
|
|
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559111, viewGroup, false);
|
|
C14957gcv.c(inflate, "");
|
|
return new EasycashSalesheetHeaderViewHolder(this, inflate);
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class EasycashSalesheetHeaderViewHolder_ViewBinding implements Unbinder {
|
|
private EasycashSalesheetHeaderViewHolder d;
|
|
|
|
public EasycashSalesheetHeaderViewHolder_ViewBinding(EasycashSalesheetHeaderViewHolder easycashSalesheetHeaderViewHolder, View view) {
|
|
this.d = easycashSalesheetHeaderViewHolder;
|
|
easycashSalesheetHeaderViewHolder.title = (TextView) pyT.e(view, R.id.tv_title, "field 'title'", TextView.class);
|
|
easycashSalesheetHeaderViewHolder.salesheetList = (RecyclerView) pyT.e(view, R.id.rv_easycash_salesheets, "field 'salesheetList'", RecyclerView.class);
|
|
}
|
|
|
|
@Override // butterknife.Unbinder
|
|
public final void a() {
|
|
EasycashSalesheetHeaderViewHolder easycashSalesheetHeaderViewHolder = this.d;
|
|
if (easycashSalesheetHeaderViewHolder == null) {
|
|
throw new IllegalStateException("Bindings already cleared.");
|
|
}
|
|
this.d = null;
|
|
easycashSalesheetHeaderViewHolder.title = null;
|
|
easycashSalesheetHeaderViewHolder.salesheetList = null;
|
|
}
|
|
}
|
|
|
|
public EasycashSalesheetHeaderAdapter(Context context, List<LZ> list, EasycashSalesheetAdapter.HBt hBt) {
|
|
C14957gcv.e(context, "");
|
|
C14957gcv.e(list, "");
|
|
C14957gcv.e(hBt, "");
|
|
this.b = context;
|
|
this.e = list;
|
|
this.d = hBt;
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final int getItemCount() {
|
|
return this.e.size();
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class EasycashSalesheetHeaderViewHolder extends RecyclerView.zJl {
|
|
final EasycashSalesheetHeaderAdapter a;
|
|
|
|
@BindView
|
|
public RecyclerView salesheetList;
|
|
|
|
@BindView
|
|
public TextView title;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public EasycashSalesheetHeaderViewHolder(EasycashSalesheetHeaderAdapter easycashSalesheetHeaderAdapter, View view) {
|
|
super(view);
|
|
C14957gcv.e(view, "");
|
|
this.a = easycashSalesheetHeaderAdapter;
|
|
ButterKnife.c(this, view);
|
|
}
|
|
}
|
|
}
|