what-the-bank/sources/com/scb/phone/view/adapter/etb/ETBEligibilityAdapter.java

83 lines
3.1 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.etb;
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.squareup.picasso.Picasso;
import java.util.List;
import o.C0694Mk;
import o.pyT;
/* loaded from: classes5.dex */
public final class ETBEligibilityAdapter extends RecyclerView.Sts<EligibilityHolder> {
private List<C0694Mk> d;
/* loaded from: classes5.dex */
public class EligibilityHolder_ViewBinding implements Unbinder {
private EligibilityHolder e;
public EligibilityHolder_ViewBinding(EligibilityHolder eligibilityHolder, View view) {
this.e = eligibilityHolder;
eligibilityHolder.eligibilityIcon = (ImageView) pyT.e(view, R.id.etb_eligibility_image, "field 'eligibilityIcon'", ImageView.class);
eligibilityHolder.eligibilityDescription = (TextView) pyT.e(view, R.id.etb_eligibility_text, "field 'eligibilityDescription'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
EligibilityHolder eligibilityHolder = this.e;
if (eligibilityHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.e = null;
eligibilityHolder.eligibilityIcon = null;
eligibilityHolder.eligibilityDescription = null;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(EligibilityHolder eligibilityHolder, int i) {
EligibilityHolder eligibilityHolder2 = eligibilityHolder;
Picasso.d().e(this.d.get(i).b).e(R.drawable.donations_place_holder).b(R.drawable.donations_place_holder).aBu_(eligibilityHolder2.eligibilityIcon, null);
eligibilityHolder2.eligibilityDescription.setText(this.d.get(i).e);
}
public ETBEligibilityAdapter(List<C0694Mk> list) {
this.d = list;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
return this.d.size();
}
/* loaded from: classes5.dex */
class EligibilityHolder extends RecyclerView.zJl {
private ETBEligibilityAdapter e;
@BindView
TextView eligibilityDescription;
@BindView
ImageView eligibilityIcon;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public EligibilityHolder(ETBEligibilityAdapter eTBEligibilityAdapter, View view) {
super(view);
this.e = eTBEligibilityAdapter;
ButterKnife.c(this, view);
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ EligibilityHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
return new EligibilityHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559019, viewGroup, false));
}
}