127 lines
4.4 KiB
Java
127 lines
4.4 KiB
Java
package com.scb.phone.view.adapter.sme.gifting;
|
|
|
|
import android.content.Context;
|
|
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.sme.gifting.MoneyPresentAdapter;
|
|
import java.util.List;
|
|
import o.C12891fKc;
|
|
import o.WM;
|
|
import o.nMh;
|
|
import o.pyT;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class MoneyPresentAdapter extends RecyclerView.Sts<MoneyPresentViewHolder> {
|
|
private Sts c;
|
|
private List<WM> d;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public interface Sts {
|
|
void b(WM wm);
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class MoneyPresentViewHolder_ViewBinding implements Unbinder {
|
|
private MoneyPresentViewHolder b;
|
|
|
|
public MoneyPresentViewHolder_ViewBinding(MoneyPresentViewHolder moneyPresentViewHolder, View view) {
|
|
this.b = moneyPresentViewHolder;
|
|
moneyPresentViewHolder.name = (TextView) pyT.e(view, R.id.money_present_item_name, "field 'name'", TextView.class);
|
|
moneyPresentViewHolder.description = (TextView) pyT.e(view, R.id.money_present_item_description, "field 'description'", TextView.class);
|
|
moneyPresentViewHolder.image = (ImageView) pyT.e(view, R.id.money_present_item_image, "field 'image'", ImageView.class);
|
|
}
|
|
|
|
@Override // butterknife.Unbinder
|
|
public final void a() {
|
|
MoneyPresentViewHolder moneyPresentViewHolder = this.b;
|
|
if (moneyPresentViewHolder == null) {
|
|
throw new IllegalStateException("Bindings already cleared.");
|
|
}
|
|
this.b = null;
|
|
moneyPresentViewHolder.name = null;
|
|
moneyPresentViewHolder.description = null;
|
|
moneyPresentViewHolder.image = null;
|
|
}
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final /* synthetic */ void onBindViewHolder(MoneyPresentViewHolder moneyPresentViewHolder, int i) {
|
|
MoneyPresentViewHolder moneyPresentViewHolder2 = moneyPresentViewHolder;
|
|
final WM wm = this.d.get(i);
|
|
moneyPresentViewHolder2.name.setText(wm.i);
|
|
moneyPresentViewHolder2.description.setText(wm.c);
|
|
C12891fKc.azn_(nMh.getDrawable(moneyPresentViewHolder2.d, R.color.f3412131099849), moneyPresentViewHolder2.image, wm.h);
|
|
moneyPresentViewHolder2.itemView.setOnClickListener(new View.OnClickListener(this, wm) { // from class: o.eze
|
|
private WM a;
|
|
private MoneyPresentAdapter c;
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
MoneyPresentAdapter.b(this.c, this.a);
|
|
}
|
|
|
|
{
|
|
this.c = this;
|
|
this.a = wm;
|
|
}
|
|
});
|
|
}
|
|
|
|
public MoneyPresentAdapter(List<WM> list, Sts sts) {
|
|
this.d = list;
|
|
this.c = sts;
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final int getItemCount() {
|
|
List<WM> list = this.d;
|
|
if (list == null) {
|
|
return 0;
|
|
}
|
|
return list.size();
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
class MoneyPresentViewHolder extends RecyclerView.zJl {
|
|
private MoneyPresentAdapter b;
|
|
final Context d;
|
|
|
|
@BindView
|
|
TextView description;
|
|
|
|
@BindView
|
|
ImageView image;
|
|
|
|
@BindView
|
|
TextView name;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
MoneyPresentViewHolder(MoneyPresentAdapter moneyPresentAdapter, View view) {
|
|
super(view);
|
|
this.b = moneyPresentAdapter;
|
|
ButterKnife.c(this, view);
|
|
this.d = view.getContext();
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void b(MoneyPresentAdapter moneyPresentAdapter, WM wm) {
|
|
Sts sts = moneyPresentAdapter.c;
|
|
if (sts != null) {
|
|
sts.b(wm);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final /* synthetic */ MoneyPresentViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
|
|
return new MoneyPresentViewHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559280, viewGroup, false));
|
|
}
|
|
}
|