108 lines
4.0 KiB
Java
108 lines
4.0 KiB
Java
|
package com.scb.phone.view.adapter.sme.gifting;
|
||
|
|
||
|
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.GiftSelectRecipientFromFavouriteAdapter;
|
||
|
import java.util.List;
|
||
|
import o.C1182Xi;
|
||
|
import o.C12891fKc;
|
||
|
import o.nMh;
|
||
|
import o.pyT;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class GiftSelectRecipientFromFavouriteAdapter extends RecyclerView.Sts<RecipientViewHolder> {
|
||
|
private final List<C1182Xi> a;
|
||
|
private final HBt c;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public interface HBt {
|
||
|
void c(C1182Xi c1182Xi);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class RecipientViewHolder_ViewBinding implements Unbinder {
|
||
|
private RecipientViewHolder d;
|
||
|
|
||
|
public RecipientViewHolder_ViewBinding(RecipientViewHolder recipientViewHolder, View view) {
|
||
|
this.d = recipientViewHolder;
|
||
|
recipientViewHolder.billerName = (TextView) pyT.e(view, R.id.biller_name_text_view, "field 'billerName'", TextView.class);
|
||
|
recipientViewHolder.billerAvatar = (ImageView) pyT.e(view, R.id.biller_avatar_image_view, "field 'billerAvatar'", ImageView.class);
|
||
|
}
|
||
|
|
||
|
@Override // butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
RecipientViewHolder recipientViewHolder = this.d;
|
||
|
if (recipientViewHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.d = null;
|
||
|
recipientViewHolder.billerName = null;
|
||
|
recipientViewHolder.billerAvatar = null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ void onBindViewHolder(RecipientViewHolder recipientViewHolder, int i) {
|
||
|
final RecipientViewHolder recipientViewHolder2 = recipientViewHolder;
|
||
|
final C1182Xi c1182Xi = this.a.get(i);
|
||
|
recipientViewHolder2.a.setOnClickListener(new View.OnClickListener(recipientViewHolder2, c1182Xi) { // from class: o.eyT
|
||
|
private GiftSelectRecipientFromFavouriteAdapter.RecipientViewHolder b;
|
||
|
private C1182Xi c;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view) {
|
||
|
this.b.b.c(this.c);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = recipientViewHolder2;
|
||
|
this.c = c1182Xi;
|
||
|
}
|
||
|
});
|
||
|
recipientViewHolder2.billerName.setText(c1182Xi.e());
|
||
|
C12891fKc.azf_(recipientViewHolder2.a.getContext(), R.drawable.bankicon_place_holder, recipientViewHolder2.billerAvatar, c1182Xi.c(), recipientViewHolder2.a.getContext().getResources().getDimensionPixelOffset(R.dimen.f15212131165285), nMh.getColor(recipientViewHolder2.a.getContext(), R.color.f3412131099849));
|
||
|
}
|
||
|
|
||
|
public GiftSelectRecipientFromFavouriteAdapter(List<C1182Xi> list, HBt hBt) {
|
||
|
this.a = list;
|
||
|
this.c = hBt;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final int getItemCount() {
|
||
|
return this.a.size();
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static class RecipientViewHolder extends RecyclerView.zJl {
|
||
|
final View a;
|
||
|
private HBt b;
|
||
|
|
||
|
@BindView
|
||
|
public ImageView billerAvatar;
|
||
|
|
||
|
@BindView
|
||
|
public TextView billerName;
|
||
|
|
||
|
RecipientViewHolder(View view, HBt hBt) {
|
||
|
super(view);
|
||
|
this.a = view;
|
||
|
this.b = hBt;
|
||
|
ButterKnife.c(this, view);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ RecipientViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||
|
return new RecipientViewHolder(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131560101, viewGroup, false), this.c);
|
||
|
}
|
||
|
}
|