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

159 lines
6.0 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 java.util.List;
/* renamed from: o.eqS, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C12025eqS extends WYJ {
private final Context a;
private final List<C0385Fj> b;
public InterfaceC12826fIa d;
public C12025eqS(Context context, List<C0385Fj> list) {
C14957gcv.e(context, "");
C14957gcv.e(list, "");
this.a = context;
this.b = list;
}
@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, "");
viewGroup.removeView((View) obj);
}
@Override // o.WYJ
public final Object instantiateItem(ViewGroup viewGroup, final int i) {
View view;
C14957gcv.e(viewGroup, "");
final C0385Fj c0385Fj = this.b.get(i);
if (!c0385Fj.e && !c0385Fj.q && !c0385Fj.l && !c0385Fj.t) {
view = LayoutInflater.from(this.a).inflate(com.scb.phone.R.layout.2131559016, viewGroup, false);
C14957gcv.c(view, "");
} else {
HkB QV_ = HkB.QV_(LayoutInflater.from(this.a));
C14957gcv.c(QV_, "");
final C12030eqX c12030eqX = new C12030eqX(QV_, this.d);
C14957gcv.e(c0385Fj, "");
HkB hkB = c12030eqX.d;
C12891fKc.azt_(nMh.getDrawable(hkB.i.getContext(), c0385Fj.u), hkB.i, c0385Fj.K);
hkB.m.setText(c0385Fj.A);
hkB.f.setText(c0385Fj.b);
if (c0385Fj.q) {
if (c0385Fj.m) {
String str = c0385Fj.f;
if (!(str == null || gdZ.d((CharSequence) str))) {
hkB.e.setVisibility(0);
hkB.b.setBackground(null);
hkB.s.setText(c0385Fj.f);
hkB.h.setImageDrawable(nMh.getDrawable(hkB.h.getContext(), com.scb.phone.R.drawable.ic_loan_lock));
}
}
hkB.n.setVisibility(8);
hkB.k.setVisibility(8);
hkB.c.setVisibility(8);
hkB.l.setVisibility(8);
hkB.a.setVisibility(8);
hkB.d.setVisibility(0);
C12891fKc.azm_(c0385Fj.r, hkB.p, c0385Fj.a);
hkB.f8201o.setText(c0385Fj.O);
} else if (c0385Fj.l) {
hkB.n.setVisibility(8);
hkB.k.setVisibility(8);
hkB.c.setVisibility(8);
hkB.l.setVisibility(8);
hkB.d.setVisibility(8);
hkB.a.setVisibility(0);
hkB.j.getContext();
C12891fKc.azn_(nMh.getDrawable(hkB.j.getContext(), c0385Fj.r), hkB.j, c0385Fj.a);
hkB.t.setText(c0385Fj.O);
} else {
hkB.d.setVisibility(8);
hkB.a.setVisibility(8);
hkB.l.setVisibility(0);
if (c0385Fj.p) {
hkB.l.setUsedValue(c0385Fj.V);
hkB.l.setAvailableValue(c0385Fj.S);
} else {
hkB.l.setUsedValue(c0385Fj.B);
hkB.l.setAvailableValue(c0385Fj.P);
}
hkB.l.setProgressBar(c0385Fj.R);
hkB.l.mTotalContainerLinearLayout.setVisibility(8);
hkB.l.setUsedTitle(c0385Fj.C);
hkB.l.setAvailableTitle(c0385Fj.W);
if (c0385Fj.k && C14957gcv.b((Object) c0385Fj.M, (Object) "0.00")) {
hkB.n.setVisibility(8);
hkB.k.setVisibility(8);
} else if (c0385Fj.s) {
hkB.n.setVisibility(8);
hkB.k.setVisibility(8);
hkB.c.setVisibility(0);
hkB.g.getContext();
C12891fKc.azn_(nMh.getDrawable(hkB.g.getContext(), c0385Fj.r), hkB.g, c0385Fj.a);
hkB.q.setText(c0385Fj.H);
} else {
hkB.c.setVisibility(8);
hkB.n.setVisibility(0);
hkB.n.setText(c0385Fj.L);
hkB.k.setVisibility(0);
hkB.k.setText(c0385Fj.M);
}
String str2 = c0385Fj.j;
if ((!(str2 == null || gdZ.d((CharSequence) str2))) && c0385Fj.t) {
hkB.e.setVisibility(0);
hkB.b.setBackground(null);
hkB.s.setText(c0385Fj.j);
} else {
hkB.e.setVisibility(8);
}
}
hkB.r.setOnClickListener(new View.OnClickListener(c12030eqX, c0385Fj, i) { // from class: o.eqZ
private int a;
private C12030eqX c;
private C0385Fj d;
@Override // android.view.View.OnClickListener
public final void onClick(View view2) {
C12030eqX c12030eqX2 = this.c;
C0385Fj c0385Fj2 = this.d;
int i2 = this.a;
C14957gcv.e(c12030eqX2, "");
C14957gcv.e(c0385Fj2, "");
InterfaceC12826fIa interfaceC12826fIa = c12030eqX2.e;
if (interfaceC12826fIa == null || c0385Fj2.t || c0385Fj2.m) {
return;
}
interfaceC12826fIa.a(i2);
}
{
this.c = c12030eqX;
this.d = c0385Fj;
this.a = i;
}
});
view = c12030eqX.a;
}
viewGroup.addView(view, 0);
return view;
}
@Override // o.WYJ
public final boolean isViewFromObject(View view, Object obj) {
C14957gcv.e(view, "");
C14957gcv.e(obj, "");
return view == obj;
}
}