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

146 lines
5.8 KiB
Java
Raw Permalink 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.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import java.util.List;
/* renamed from: o.etg, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12198etg extends WYJ {
public int b;
private final Context c;
private final InterfaceC12824fIT d;
private List<C0617Kt> e;
public C12198etg(Context context, List<C0617Kt> list, InterfaceC12824fIT interfaceC12824fIT) {
C14957gcv.e(context, "");
C14957gcv.e(list, "");
C14957gcv.e(interfaceC12824fIT, "");
this.c = context;
this.e = list;
this.d = interfaceC12824fIT;
}
@Override // o.WYJ
public final Object instantiateItem(ViewGroup viewGroup, final int i) {
C14957gcv.e(viewGroup, "");
View inflate = LayoutInflater.from(this.c).inflate(com.scb.phone.R.layout.2131558933, viewGroup, false);
int i2 = com.scb.phone.R.id.ll_layout_car_source_linear;
LinearLayout linearLayout = (LinearLayout) qeC.e(inflate, com.scb.phone.R.id.ll_layout_car_source_linear);
if (linearLayout != null) {
i2 = com.scb.phone.R.id.tv_car_brand;
TextView textView = (TextView) qeC.e(inflate, com.scb.phone.R.id.tv_car_brand);
if (textView != null) {
i2 = com.scb.phone.R.id.tv_car_model;
TextView textView2 = (TextView) qeC.e(inflate, com.scb.phone.R.id.tv_car_model);
if (textView2 != null) {
i2 = com.scb.phone.R.id.tv_license_plate_number;
TextView textView3 = (TextView) qeC.e(inflate, com.scb.phone.R.id.tv_license_plate_number);
if (textView3 != null) {
WhK whK = new WhK((RelativeLayout) inflate, linearLayout, textView, textView2, textView3);
C14957gcv.c(whK, "");
IeS ieS = new IeS(this, whK);
WhK whK2 = ieS.c;
final C12198etg c12198etg = ieS.e;
C0617Kt c0617Kt = c12198etg.e.get(i);
whK2.b.setText(c0617Kt.b);
whK2.b.setTag("TAG_CAR_SELECTOR_ADAPTER_TITLE_TEXT".concat(String.valueOf(i)));
whK2.c.setText(c0617Kt.a);
whK2.c.setTag("TAG_CAR_SELECTOR_ADAPTER_SUB_TITLE_TEXT".concat(String.valueOf(i)));
whK2.a.setText(c0617Kt.e);
whK2.a.setTag("TAG_CAR_SELECTOR_ADAPTER_PLATE_NUMBER_TEXT".concat(String.valueOf(i)));
whK2.e.setTag("TAG_ACCOUNT_SELECTOR_ADAPTER_BACKGROUND".concat(String.valueOf(i)));
if (c12198etg.b == i) {
whK2.e.setBackground(nMh.getDrawable(c12198etg.c, com.scb.phone.R.drawable.rounded_purple_view_pager));
whK2.b.setTextColor(nMh.getColor(c12198etg.c, com.scb.phone.R.color.f2982131099805));
} else {
whK2.e.setBackground(nMh.getDrawable(c12198etg.c, com.scb.phone.R.drawable.bg_white_rounded));
whK2.b.setTextColor(nMh.getColor(c12198etg.c, com.scb.phone.R.color.f3092131099816));
}
whK2.e.setOnClickListener(new View.OnClickListener(c12198etg, i) { // from class: o.etj
private C12198etg a;
private int c;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
InterfaceC12824fIT interfaceC12824fIT;
C12198etg c12198etg2 = this.a;
int i3 = this.c;
C14957gcv.e(c12198etg2, "");
interfaceC12824fIT = c12198etg2.d;
interfaceC12824fIT.a(i3);
}
{
this.a = c12198etg;
this.c = i;
}
});
viewGroup.addView(ieS.a, 0);
return ieS.a;
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i2)));
}
@Override // o.WYJ
public final int getCount() {
return this.e.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.etg$IeS */
/* loaded from: classes5.dex */
final class IeS {
final RelativeLayout a;
final WhK c;
final C12198etg e;
public IeS(C12198etg c12198etg, WhK whK) {
C14957gcv.e(whK, "");
this.e = c12198etg;
this.c = whK;
RelativeLayout relativeLayout = whK.d;
C14957gcv.c(relativeLayout, "");
this.a = relativeLayout;
}
}
/* renamed from: o.etg$HBt */
/* loaded from: classes5.dex */
public static final class HBt {
private HBt() {
}
public /* synthetic */ HBt(byte b) {
this();
}
}
@Override // o.WYJ
public final boolean isViewFromObject(View view, Object obj) {
C14957gcv.e(view, "");
C14957gcv.e(obj, "");
return view == obj;
}
static {
new HBt((byte) 0);
}
}