package com.scb.phone.view.adapter.donations; 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.donations.DonationsImageSliderPagerAdapter; import java.util.ArrayList; import java.util.List; import o.C12891fKc; import o.JL; import o.WYJ; import o.fIK; import o.nMh; import o.pyT; import o.xUo; /* loaded from: classes5.dex */ public final class DonationsImageSliderPagerAdapter extends WYJ { private String a = xUo.b(); private List b; private fIK c; private LayoutInflater d; private Context e; @Override // o.WYJ public final boolean isViewFromObject(View view, Object obj) { return view == obj; } /* loaded from: classes5.dex */ public class ItemViewHolder_ViewBinding implements Unbinder { private ItemViewHolder c; public ItemViewHolder_ViewBinding(ItemViewHolder itemViewHolder, View view) { this.c = itemViewHolder; itemViewHolder.imageDonation = (ImageView) pyT.e(view, R.id.image_donation, "field 'imageDonation'", ImageView.class); itemViewHolder.foundationNameTextView = (TextView) pyT.e(view, R.id.foundation_name, "field 'foundationNameTextView'", TextView.class); } @Override // butterknife.Unbinder public final void a() { ItemViewHolder itemViewHolder = this.c; if (itemViewHolder == null) { throw new IllegalStateException("Bindings already cleared."); } this.c = null; itemViewHolder.imageDonation = null; itemViewHolder.foundationNameTextView = null; } } public DonationsImageSliderPagerAdapter(Context context, List list, fIK fik) { this.d = (LayoutInflater) context.getSystemService("layout_inflater"); this.e = context; this.c = fik; this.b = list == null ? new ArrayList<>() : list; } @Override // o.WYJ public final int getCount() { return this.b.size(); } @Override // o.WYJ public final void destroyItem(ViewGroup viewGroup, int i, Object obj) { viewGroup.removeView((View) obj); } @Override // o.WYJ public final Object instantiateItem(ViewGroup viewGroup, final int i) { ItemViewHolder itemViewHolder = new ItemViewHolder(this.d.inflate(R.layout.2131558999, (ViewGroup) null)); C12891fKc.azn_(nMh.getDrawable(this.e, R.drawable.donations_place_holder), itemViewHolder.imageDonation, this.b.get(i).c); if (this.a.equals("th")) { itemViewHolder.foundationNameTextView.setText(this.b.get(i).h.c); } else { itemViewHolder.foundationNameTextView.setText(this.b.get(i).h.d); } View view = itemViewHolder.b; view.setOnClickListener(new View.OnClickListener(this, i) { // from class: o.etb private DonationsImageSliderPagerAdapter d; private int e; @Override // android.view.View.OnClickListener public final void onClick(View view2) { DonationsImageSliderPagerAdapter.a(this.d, this.e); } { this.d = this; this.e = i; } }); viewGroup.addView(view, 0); return view; } /* loaded from: classes5.dex */ static class ItemViewHolder extends RecyclerView.zJl { View b; @BindView TextView foundationNameTextView; @BindView ImageView imageDonation; ItemViewHolder(View view) { super(view); this.b = view; ButterKnife.c(this, view); } } public static /* synthetic */ void a(DonationsImageSliderPagerAdapter donationsImageSliderPagerAdapter, int i) { fIK fik = donationsImageSliderPagerAdapter.c; if (fik != null) { fik.b(donationsImageSliderPagerAdapter.b.get(i)); } } }