115 lines
4.2 KiB
Java
115 lines
4.2 KiB
Java
|
package com.scb.phone.view.adapter.investment;
|
||
|
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.ImageView;
|
||
|
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.investment.InvestmentContextualAdsAdapter;
|
||
|
import java.util.ArrayList;
|
||
|
import o.AbstractC12010eqD;
|
||
|
import o.C12891fKc;
|
||
|
import o.C14957gcv;
|
||
|
import o.InterfaceC9378dic;
|
||
|
import o.QU;
|
||
|
import o.pyT;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class InvestmentContextualAdsAdapter extends AbstractC12010eqD<QU, AdViewHolder> {
|
||
|
private final InterfaceC9378dic b;
|
||
|
private ArrayList<QU> e;
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ void onBindViewHolder(RecyclerView.zJl zjl, int i) {
|
||
|
AdViewHolder adViewHolder = (AdViewHolder) zjl;
|
||
|
C14957gcv.e(adViewHolder, "");
|
||
|
QU qu = this.e.get(b(i));
|
||
|
C14957gcv.c(qu, "");
|
||
|
final QU qu2 = qu;
|
||
|
C14957gcv.e(qu2, "");
|
||
|
View view = adViewHolder.itemView;
|
||
|
final InvestmentContextualAdsAdapter investmentContextualAdsAdapter = adViewHolder.a;
|
||
|
view.setOnClickListener(new View.OnClickListener(investmentContextualAdsAdapter, qu2) { // from class: o.evd
|
||
|
private InvestmentContextualAdsAdapter a;
|
||
|
private QU c;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view2) {
|
||
|
InvestmentContextualAdsAdapter.AdViewHolder.e(this.a, this.c);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = investmentContextualAdsAdapter;
|
||
|
this.c = qu2;
|
||
|
}
|
||
|
});
|
||
|
ImageView imageView = adViewHolder.ivAdImage;
|
||
|
if (imageView == null) {
|
||
|
C14957gcv.a("");
|
||
|
imageView = null;
|
||
|
}
|
||
|
C12891fKc.azC_(imageView, qu2.a);
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ RecyclerView.zJl onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||
|
C14957gcv.e(viewGroup, "");
|
||
|
return new AdViewHolder(this, viewGroup);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class AdViewHolder_ViewBinding implements Unbinder {
|
||
|
private AdViewHolder d;
|
||
|
|
||
|
public AdViewHolder_ViewBinding(AdViewHolder adViewHolder, View view) {
|
||
|
this.d = adViewHolder;
|
||
|
adViewHolder.ivAdImage = (ImageView) pyT.e(view, R.id.iv_ad_image, "field 'ivAdImage'", ImageView.class);
|
||
|
}
|
||
|
|
||
|
@Override // butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
AdViewHolder adViewHolder = this.d;
|
||
|
if (adViewHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.d = null;
|
||
|
adViewHolder.ivAdImage = null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
public InvestmentContextualAdsAdapter(ArrayList<QU> arrayList, InterfaceC9378dic interfaceC9378dic) {
|
||
|
super(arrayList);
|
||
|
C14957gcv.e(arrayList, "");
|
||
|
C14957gcv.e(interfaceC9378dic, "");
|
||
|
this.e = arrayList;
|
||
|
this.b = interfaceC9378dic;
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class AdViewHolder extends RecyclerView.zJl {
|
||
|
final InvestmentContextualAdsAdapter a;
|
||
|
|
||
|
@BindView
|
||
|
public ImageView ivAdImage;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
public AdViewHolder(InvestmentContextualAdsAdapter investmentContextualAdsAdapter, ViewGroup viewGroup) {
|
||
|
super(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131560017, viewGroup, false));
|
||
|
C14957gcv.e(viewGroup, "");
|
||
|
this.a = investmentContextualAdsAdapter;
|
||
|
ButterKnife.c(this, this.itemView);
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void e(InvestmentContextualAdsAdapter investmentContextualAdsAdapter, QU qu) {
|
||
|
C14957gcv.e(investmentContextualAdsAdapter, "");
|
||
|
C14957gcv.e(qu, "");
|
||
|
investmentContextualAdsAdapter.b.a(qu);
|
||
|
}
|
||
|
}
|
||
|
}
|