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

187 lines
7.5 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.adapter.creditcard;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;
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.custom.common.AdjustableImageView;
import java.util.List;
import o.C0367Fb;
import o.C0537Iz;
import o.InterfaceC12841fIp;
import o.InterfaceC6618cYI;
import o.WYJ;
import o.pyT;
/* loaded from: classes5.dex */
public final class CreditCardDetailViewPagerAdapter extends WYJ {
private LayoutInflater a;
private InterfaceC12841fIp b;
private List<C0367Fb> c;
public InterfaceC6618cYI.HBt d;
private Context e;
private ViewGroup.LayoutParams f;
@Override // o.WYJ
public final boolean isViewFromObject(View view, Object obj) {
return view == obj;
}
/* loaded from: classes5.dex */
public class CreditCardItemViewHolder_ViewBinding implements Unbinder {
private CreditCardItemViewHolder e;
public CreditCardItemViewHolder_ViewBinding(CreditCardItemViewHolder creditCardItemViewHolder, View view) {
this.e = creditCardItemViewHolder;
creditCardItemViewHolder.creditCardImageView = (AdjustableImageView) pyT.e(view, R.id.credit_card_image_view, "field 'creditCardImageView'", AdjustableImageView.class);
creditCardItemViewHolder.tvName = (TextView) pyT.e(view, R.id.card_name_text_view, "field 'tvName'", TextView.class);
creditCardItemViewHolder.tvNumber = (TextView) pyT.e(view, R.id.card_number_text_view, "field 'tvNumber'", TextView.class);
creditCardItemViewHolder.tvFrontNumber = (TextView) pyT.e(view, R.id.card_number_front_text_view, "field 'tvFrontNumber'", TextView.class);
creditCardItemViewHolder.tvSecondFrontNumber = (TextView) pyT.e(view, R.id.card_number_2nd_front_text_view, "field 'tvSecondFrontNumber'", TextView.class);
creditCardItemViewHolder.points = (TextView) pyT.e(view, R.id.card_points_text_view, "field 'points'", TextView.class);
creditCardItemViewHolder.containerPoints = (RelativeLayout) pyT.e(view, R.id.card_points_container_relative_layout, "field 'containerPoints'", RelativeLayout.class);
creditCardItemViewHolder.giftIcon = (ImageView) pyT.e(view, R.id.iv_gift, "field 'giftIcon'", ImageView.class);
creditCardItemViewHolder.pointLabel = (TextView) pyT.e(view, R.id.card_points_label, "field 'pointLabel'", TextView.class);
creditCardItemViewHolder.errorContainerPoints = (RelativeLayout) pyT.e(view, R.id.error_card_points_container_relative_layout, "field 'errorContainerPoints'", RelativeLayout.class);
creditCardItemViewHolder.blockContainer = (RelativeLayout) pyT.e(view, R.id.rl_block, "field 'blockContainer'", RelativeLayout.class);
creditCardItemViewHolder.imageBlock = (ImageView) pyT.e(view, R.id.image_block, "field 'imageBlock'", ImageView.class);
creditCardItemViewHolder.textBlock = (TextView) pyT.e(view, R.id.text_block, "field 'textBlock'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
CreditCardItemViewHolder creditCardItemViewHolder = this.e;
if (creditCardItemViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.e = null;
creditCardItemViewHolder.creditCardImageView = null;
creditCardItemViewHolder.tvName = null;
creditCardItemViewHolder.tvNumber = null;
creditCardItemViewHolder.tvFrontNumber = null;
creditCardItemViewHolder.tvSecondFrontNumber = null;
creditCardItemViewHolder.points = null;
creditCardItemViewHolder.containerPoints = null;
creditCardItemViewHolder.giftIcon = null;
creditCardItemViewHolder.pointLabel = null;
creditCardItemViewHolder.errorContainerPoints = null;
creditCardItemViewHolder.blockContainer = null;
creditCardItemViewHolder.imageBlock = null;
creditCardItemViewHolder.textBlock = null;
}
}
public CreditCardDetailViewPagerAdapter(Context context, List<C0367Fb> list, InterfaceC12841fIp interfaceC12841fIp) {
this.a = (LayoutInflater) context.getSystemService("layout_inflater");
this.e = context;
this.c = list;
this.b = interfaceC12841fIp;
}
@Override // o.WYJ
public final int getCount() {
return this.c.size();
}
@Override // o.WYJ
public final void destroyItem(ViewGroup viewGroup, int i, Object obj) {
viewGroup.removeView((View) obj);
}
/* JADX WARN: Code restructure failed: missing block: B:25:0x00f3, code lost:
if (o.kcz.c(r1) == false) goto L24;
*/
@Override // o.WYJ
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final java.lang.Object instantiateItem(android.view.ViewGroup r7, int r8) {
/*
Method dump skipped, instructions count: 267
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.adapter.creditcard.CreditCardDetailViewPagerAdapter.instantiateItem(android.view.ViewGroup, int):java.lang.Object");
}
public final void e(C0537Iz c0537Iz) {
for (C0367Fb c0367Fb : this.c) {
if (c0367Fb.g.equals(c0537Iz.b)) {
c0367Fb.ab = c0537Iz.h;
c0367Fb.j = c0537Iz.c;
c0367Fb.f = c0537Iz.a;
c0367Fb.i = c0537Iz.d;
return;
}
}
}
/* loaded from: classes5.dex */
public static class CreditCardItemViewHolder extends RecyclerView.zJl {
View b;
@BindView
RelativeLayout blockContainer;
@BindView
RelativeLayout containerPoints;
@BindView
AdjustableImageView creditCardImageView;
@BindView
RelativeLayout errorContainerPoints;
@BindView
ImageView giftIcon;
@BindView
ImageView imageBlock;
@BindView
TextView pointLabel;
@BindView
TextView points;
@BindView
TextView textBlock;
@BindView
TextView tvFrontNumber;
@BindView
TextView tvName;
@BindView
TextView tvNumber;
@BindView
TextView tvSecondFrontNumber;
CreditCardItemViewHolder(View view) {
super(view);
this.b = view;
ButterKnife.c(this, view);
}
}
public static /* synthetic */ void e(CreditCardDetailViewPagerAdapter creditCardDetailViewPagerAdapter, CreditCardItemViewHolder creditCardItemViewHolder) {
ViewGroup.LayoutParams layoutParams = creditCardItemViewHolder.blockContainer.getLayoutParams();
creditCardDetailViewPagerAdapter.f = layoutParams;
layoutParams.height = creditCardItemViewHolder.creditCardImageView.getHeight();
creditCardDetailViewPagerAdapter.f.width = creditCardItemViewHolder.creditCardImageView.getWidth();
creditCardItemViewHolder.blockContainer.setLayoutParams(creditCardDetailViewPagerAdapter.f);
creditCardItemViewHolder.blockContainer.requestLayout();
}
}