what-the-bank/sources/o/C12203etl.java

167 lines
7.3 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import java.util.List;
/* renamed from: o.etl, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12203etl extends WYJ {
private final InterfaceC12824fIT a;
private List<C6094cIh> b;
private int c;
private final Context e;
public C12203etl(Context context, C14851gaI c14851gaI, InterfaceC12824fIT interfaceC12824fIT) {
C14957gcv.e(context, "");
this.e = context;
this.a = interfaceC12824fIT;
this.b = c14851gaI == null ? C14851gaI.c : c14851gaI;
}
/* renamed from: o.etl$RVV */
/* loaded from: classes5.dex */
public static final class RVV {
private RVV() {
}
public /* synthetic */ RVV(byte b) {
this();
}
}
@Override // o.WYJ
public final Object instantiateItem(ViewGroup viewGroup, final int i) {
C14957gcv.e(viewGroup, "");
View inflate = LayoutInflater.from(this.e).inflate(com.scb.phone.R.layout.2131558957, viewGroup, false);
int i2 = com.scb.phone.R.id.add_new_collateral_icon;
ImageView imageView = (ImageView) qeC.e(inflate, com.scb.phone.R.id.add_new_collateral_icon);
if (imageView != null) {
i2 = com.scb.phone.R.id.ll_layout_collateral_car;
LinearLayout linearLayout = (LinearLayout) qeC.e(inflate, com.scb.phone.R.id.ll_layout_collateral_car);
if (linearLayout != null) {
i2 = com.scb.phone.R.id.rl_layout_add_new_collateral;
RelativeLayout relativeLayout = (RelativeLayout) qeC.e(inflate, com.scb.phone.R.id.rl_layout_add_new_collateral);
if (relativeLayout != null) {
i2 = com.scb.phone.R.id.tv_add_new_collateral;
TextView textView = (TextView) qeC.e(inflate, com.scb.phone.R.id.tv_add_new_collateral);
if (textView != null) {
i2 = com.scb.phone.R.id.tv_collateral_car_brand;
TextView textView2 = (TextView) qeC.e(inflate, com.scb.phone.R.id.tv_collateral_car_brand);
if (textView2 != null) {
i2 = com.scb.phone.R.id.tv_collateral_car_model;
TextView textView3 = (TextView) qeC.e(inflate, com.scb.phone.R.id.tv_collateral_car_model);
if (textView3 != null) {
i2 = com.scb.phone.R.id.tv_collateral_car_registration_number;
TextView textView4 = (TextView) qeC.e(inflate, com.scb.phone.R.id.tv_collateral_car_registration_number);
if (textView4 != null) {
vFR vfr = new vFR((RelativeLayout) inflate, imageView, linearLayout, relativeLayout, textView, textView2, textView3, textView4);
C14957gcv.c(vfr, "");
Sts sts = new Sts(this, vfr);
vFR vfr2 = sts.a;
final C12203etl c12203etl = sts.b;
C6094cIh c6094cIh = c12203etl.b.get(i);
if (i != c12203etl.b.size() - 1) {
vfr2.b.setText(c6094cIh.d);
vfr2.d.setText(c6094cIh.b);
vfr2.j.setText(c6094cIh.e);
} else {
vfr2.b.setVisibility(8);
vfr2.d.setVisibility(8);
vfr2.j.setVisibility(8);
vfr2.c.setVisibility(0);
}
vfr2.a.setTag("TAG_COLLATERAL_SELECTOR_ADAPTER_BACKGROUND".concat(String.valueOf(i)));
if (c12203etl.c == i) {
vfr2.a.setBackground(nMh.getDrawable(c12203etl.e, com.scb.phone.R.drawable.rounded_purple_view_pager));
} else {
vfr2.a.setBackground(nMh.getDrawable(c12203etl.e, com.scb.phone.R.drawable.bg_white_rounded));
}
vfr2.a.setOnClickListener(new View.OnClickListener(c12203etl, i) { // from class: o.etm
private C12203etl d;
private int e;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
InterfaceC12824fIT interfaceC12824fIT;
C12203etl c12203etl2 = this.d;
int i3 = this.e;
C14957gcv.e(c12203etl2, "");
interfaceC12824fIT = c12203etl2.a;
if (interfaceC12824fIT != null) {
interfaceC12824fIT.a(i3);
}
}
{
this.d = c12203etl;
this.e = i;
}
});
viewGroup.addView(sts.d, 0);
return sts.d;
}
}
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i2)));
}
@Override // o.WYJ
public final int getCount() {
return this.b.size();
}
@Override // o.WYJ
public final void destroyItem(ViewGroup viewGroup, int i, Object obj) {
C14957gcv.e(viewGroup, "");
C14957gcv.e(obj, "");
if (obj instanceof View) {
viewGroup.removeView((View) obj);
}
}
/* renamed from: o.etl$Sts */
/* loaded from: classes5.dex */
final class Sts {
final vFR a;
final C12203etl b;
final RelativeLayout d;
public Sts(C12203etl c12203etl, vFR vfr) {
C14957gcv.e(vfr, "");
this.b = c12203etl;
this.a = vfr;
RelativeLayout relativeLayout = vfr.e;
C14957gcv.c(relativeLayout, "");
this.d = relativeLayout;
}
}
@Override // o.WYJ
public final boolean isViewFromObject(View view, Object obj) {
C14957gcv.e(view, "");
C14957gcv.e(obj, "");
return view == obj;
}
@Override // o.WYJ
public final int getItemPosition(Object obj) {
C14957gcv.e(obj, "");
return -2;
}
static {
new RVV((byte) 0);
}
}