134 lines
4.6 KiB
Java
134 lines
4.6 KiB
Java
|
package com.scb.phone.view.adapter;
|
||
|
|
||
|
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.BaseHighlightAdapter;
|
||
|
import java.util.ArrayList;
|
||
|
import o.AbstractC12010eqD;
|
||
|
import o.C10456eEq;
|
||
|
import o.C14957gcv;
|
||
|
import o.EP;
|
||
|
import o.PNS;
|
||
|
import o.pyT;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class BaseHighlightAdapter<DISPLAY extends EP, ITEMS extends ArrayList<DISPLAY>> extends AbstractC12010eqD<DISPLAY, BannerViewHolder> {
|
||
|
private LWm<DISPLAY> b;
|
||
|
private ITEMS e;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public interface LWm<DISPLAY extends EP> {
|
||
|
void d(DISPLAY display);
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ void onBindViewHolder(RecyclerView.zJl zjl, int i) {
|
||
|
BannerViewHolder bannerViewHolder = (BannerViewHolder) zjl;
|
||
|
C14957gcv.e(bannerViewHolder, "");
|
||
|
Object obj = this.e.get(b(i));
|
||
|
C14957gcv.c(obj, "");
|
||
|
final EP ep = (EP) obj;
|
||
|
final LWm<DISPLAY> lWm = this.b;
|
||
|
C14957gcv.e(ep, "");
|
||
|
C14957gcv.e(lWm, "");
|
||
|
bannerViewHolder.itemView.setOnClickListener(new View.OnClickListener(lWm, ep) { // from class: o.eqE
|
||
|
private EP a;
|
||
|
private BaseHighlightAdapter.LWm d;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view) {
|
||
|
BaseHighlightAdapter.BannerViewHolder.a(this.d, this.a);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = lWm;
|
||
|
this.a = ep;
|
||
|
}
|
||
|
});
|
||
|
TextView textView = bannerViewHolder.tvHighlightTitle;
|
||
|
ImageView imageView = null;
|
||
|
if (textView == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView = null;
|
||
|
}
|
||
|
textView.setText(ep.b());
|
||
|
ImageView imageView2 = bannerViewHolder.ivHighlight;
|
||
|
if (imageView2 != null) {
|
||
|
imageView = imageView2;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
C10456eEq.aqe_(imageView, ep.d(), new PNS().c(ep.c()).a(ep.c()).e());
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ RecyclerView.zJl onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||
|
C14957gcv.e(viewGroup, "");
|
||
|
View inflate = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131560010, viewGroup, false);
|
||
|
C14957gcv.c(inflate, "");
|
||
|
return new BannerViewHolder(inflate);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class BannerViewHolder_ViewBinding implements Unbinder {
|
||
|
private BannerViewHolder e;
|
||
|
|
||
|
public BannerViewHolder_ViewBinding(BannerViewHolder bannerViewHolder, View view) {
|
||
|
this.e = bannerViewHolder;
|
||
|
bannerViewHolder.tvHighlightTitle = (TextView) pyT.e(view, R.id.tv_highlight_title, "field 'tvHighlightTitle'", TextView.class);
|
||
|
bannerViewHolder.ivHighlight = (ImageView) pyT.e(view, R.id.iv_highlight, "field 'ivHighlight'", ImageView.class);
|
||
|
}
|
||
|
|
||
|
@Override // butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
BannerViewHolder bannerViewHolder = this.e;
|
||
|
if (bannerViewHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.e = null;
|
||
|
bannerViewHolder.tvHighlightTitle = null;
|
||
|
bannerViewHolder.ivHighlight = null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
public BaseHighlightAdapter(ITEMS items, LWm<DISPLAY> lWm) {
|
||
|
super(items);
|
||
|
C14957gcv.e(items, "");
|
||
|
C14957gcv.e(lWm, "");
|
||
|
this.e = items;
|
||
|
this.b = lWm;
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class BannerViewHolder extends RecyclerView.zJl {
|
||
|
|
||
|
@BindView
|
||
|
public ImageView ivHighlight;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvHighlightTitle;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
public BannerViewHolder(View view) {
|
||
|
super(view);
|
||
|
C14957gcv.e(view, "");
|
||
|
ButterKnife.c(this, view);
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void a(LWm lWm, EP ep) {
|
||
|
C14957gcv.e(lWm, "");
|
||
|
C14957gcv.e(ep, "");
|
||
|
lWm.d(ep);
|
||
|
}
|
||
|
}
|
||
|
}
|