152 lines
6.2 KiB
Java
152 lines
6.2 KiB
Java
|
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 androidx.viewpager.widget.ViewPager;
|
||
|
import java.util.List;
|
||
|
import o.AbstractC12056eqx;
|
||
|
import o.C12089erd;
|
||
|
|
||
|
/* renamed from: o.erd, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class C12089erd extends AbstractC12056eqx<FA> {
|
||
|
@Override // o.AbstractC12056eqx
|
||
|
public final /* synthetic */ void c(FA fa) {
|
||
|
FA fa2 = fa;
|
||
|
C14957gcv.e(fa2, "");
|
||
|
super.c(fa2);
|
||
|
ViewPager viewPager = this.c;
|
||
|
if (viewPager != null) {
|
||
|
int childCount = viewPager.getChildCount();
|
||
|
for (int i = 0; i < childCount; i++) {
|
||
|
View childAt = viewPager.getChildAt(i);
|
||
|
View findViewById = childAt.findViewById(com.scb.phone.R.id.account_source_linear_layout);
|
||
|
if (findViewById != null) {
|
||
|
findViewById.setBackgroundResource(C14957gcv.b(childAt.getTag(), (Object) fa2.b) ? com.scb.phone.R.drawable.bg_button_fake_white_with_purple_border_rounded : com.scb.phone.R.drawable.bg_white_rounded);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
public C12089erd(Context context, AbstractC12056eqx.HBt<FA> hBt) {
|
||
|
super(context, hBt);
|
||
|
C14957gcv.e(context, "");
|
||
|
C14957gcv.e(hBt, "");
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC12056eqx
|
||
|
public final View d(int i) {
|
||
|
List<? extends T> list = this.a;
|
||
|
FA fa = (FA) (list != 0 ? list.get(i) : null);
|
||
|
boolean z = false;
|
||
|
View inflate = LayoutInflater.from(this.d).inflate(com.scb.phone.R.layout.2131558893, (ViewGroup) null, false);
|
||
|
int i2 = com.scb.phone.R.id.account_source_funds_text_view;
|
||
|
TextView textView = (TextView) qeC.e(inflate, com.scb.phone.R.id.account_source_funds_text_view);
|
||
|
if (textView != null) {
|
||
|
i2 = com.scb.phone.R.id.account_source_linear_layout;
|
||
|
LinearLayout linearLayout = (LinearLayout) qeC.e(inflate, com.scb.phone.R.id.account_source_linear_layout);
|
||
|
if (linearLayout != null) {
|
||
|
i2 = com.scb.phone.R.id.account_source_name_text_view;
|
||
|
TextView textView2 = (TextView) qeC.e(inflate, com.scb.phone.R.id.account_source_name_text_view);
|
||
|
if (textView2 != null) {
|
||
|
bKD bkd = new bKD((RelativeLayout) inflate, textView, linearLayout, textView2);
|
||
|
C14957gcv.c(bkd, "");
|
||
|
if (fa != null) {
|
||
|
final HBt hBt = new HBt(bkd, new RVV(this, i));
|
||
|
ViewPager viewPager = this.c;
|
||
|
if (viewPager != null && i == viewPager.getCurrentItem()) {
|
||
|
z = true;
|
||
|
}
|
||
|
C14957gcv.e(fa, "");
|
||
|
bKD bkd2 = hBt.e;
|
||
|
bkd2.d.setText(fa.a);
|
||
|
bkd2.b.setText(fa.d);
|
||
|
bkd2.e.setBackgroundResource(z ? com.scb.phone.R.drawable.bg_button_fake_white_with_purple_border_rounded : com.scb.phone.R.drawable.bg_white_rounded);
|
||
|
bkd2.e.setOnClickListener(new View.OnClickListener(hBt) { // from class: o.eri
|
||
|
private C12089erd.HBt a;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view) {
|
||
|
C12089erd.HBt.c(this.a);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = hBt;
|
||
|
}
|
||
|
});
|
||
|
bkd.a.setTag(fa.b);
|
||
|
}
|
||
|
RelativeLayout relativeLayout = bkd.a;
|
||
|
C14957gcv.c(relativeLayout, "");
|
||
|
return relativeLayout;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i2)));
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.erd$RVV */
|
||
|
/* loaded from: classes5.dex */
|
||
|
static final class RVV extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
|
||
|
private int b;
|
||
|
private C12089erd c;
|
||
|
|
||
|
@Override // o.InterfaceC14890gbN
|
||
|
public final /* synthetic */ C14866gag invoke() {
|
||
|
ViewPager viewPager = this.c.c;
|
||
|
if (viewPager != null) {
|
||
|
viewPager.setCurrentItem(this.b, true);
|
||
|
}
|
||
|
return C14866gag.c;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
RVV(C12089erd c12089erd, int i) {
|
||
|
super(0);
|
||
|
this.c = c12089erd;
|
||
|
this.b = i;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* renamed from: o.erd$HBt */
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class HBt extends AbstractC12056eqx.Sts<FA> {
|
||
|
private final InterfaceC14890gbN<C14866gag> a;
|
||
|
final bKD e;
|
||
|
|
||
|
public static /* synthetic */ void c(HBt hBt) {
|
||
|
C14957gcv.e(hBt, "");
|
||
|
hBt.a.invoke();
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Illegal instructions before constructor call */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public HBt(o.bKD r3, o.InterfaceC14890gbN<o.C14866gag> r4) {
|
||
|
/*
|
||
|
r2 = this;
|
||
|
java.lang.String r0 = ""
|
||
|
o.C14957gcv.e(r3, r0)
|
||
|
o.C14957gcv.e(r4, r0)
|
||
|
android.widget.RelativeLayout r1 = r3.a
|
||
|
o.C14957gcv.c(r1, r0)
|
||
|
android.view.View r1 = (android.view.View) r1
|
||
|
r2.<init>(r1)
|
||
|
r2.e = r3
|
||
|
r2.a = r4
|
||
|
return
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: o.C12089erd.HBt.<init>(o.bKD, o.gbN):void");
|
||
|
}
|
||
|
}
|
||
|
}
|