what-the-bank/sources/com/scb/phone/view/adapter/creditcard/CoachMarkViewPagerAdapter.java

111 lines
3.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.creditcard;
import android.content.Context;
import android.graphics.Bitmap;
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.bumptech.glide.Glide;
import com.scb.phone.R;
import o.C17312vih;
import o.CDU;
import o.PNS;
import o.RBw;
import o.WYJ;
import o.fLE;
import o.pyT;
import o.wfh;
import o.wrW;
/* loaded from: classes5.dex */
public final class CoachMarkViewPagerAdapter extends WYJ implements View.OnClickListener {
private int[] c;
public IeS d;
private LayoutInflater e;
/* loaded from: classes5.dex */
public interface IeS {
void a();
}
@Override // o.WYJ
public final boolean isViewFromObject(View view, Object obj) {
return view == obj;
}
/* loaded from: classes5.dex */
public class TutorialItemHolder_ViewBinding implements Unbinder {
private TutorialItemHolder c;
public TutorialItemHolder_ViewBinding(TutorialItemHolder tutorialItemHolder, View view) {
this.c = tutorialItemHolder;
tutorialItemHolder.mImage = (ImageView) pyT.e(view, R.id.coach_mark_image_view, "field 'mImage'", ImageView.class);
}
@Override // butterknife.Unbinder
public final void a() {
TutorialItemHolder tutorialItemHolder = this.c;
if (tutorialItemHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.c = null;
tutorialItemHolder.mImage = null;
}
}
public CoachMarkViewPagerAdapter(Context context, int[] iArr) {
this.e = (LayoutInflater) context.getSystemService("layout_inflater");
this.c = iArr;
}
@Override // o.WYJ
public final int getCount() {
return this.c.length;
}
@Override // o.WYJ
public final Object instantiateItem(ViewGroup viewGroup, int i) {
TutorialItemHolder tutorialItemHolder = new TutorialItemHolder(this, this.e.inflate(R.layout.2131558953, (ViewGroup) null));
Context context = tutorialItemHolder.mImage.getContext();
Glide.e(context).Du_(context.getDrawable(this.c[i])).c(R.color.f3412131099849).b(new PNS().c(RBw.d, new CDU()).e().d((wrW<wrW<Boolean>>) C17312vih.e, (wrW<Boolean>) Boolean.TRUE)).b((wfh<Bitmap>) new fLE(context.getResources().getDisplayMetrics().widthPixels), true).Dq_(tutorialItemHolder.mImage);
tutorialItemHolder.e.setOnClickListener(this);
viewGroup.addView(tutorialItemHolder.e, 0);
return tutorialItemHolder.e;
}
@Override // o.WYJ
public final void destroyItem(ViewGroup viewGroup, int i, Object obj) {
viewGroup.removeView((View) obj);
}
/* loaded from: classes5.dex */
class TutorialItemHolder extends RecyclerView.zJl {
private CoachMarkViewPagerAdapter a;
View e;
@BindView
ImageView mImage;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
TutorialItemHolder(CoachMarkViewPagerAdapter coachMarkViewPagerAdapter, View view) {
super(view);
this.a = coachMarkViewPagerAdapter;
this.e = view;
ButterKnife.c(this, view);
}
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
IeS ieS = this.d;
if (ieS != null) {
ieS.a();
}
}
}