170 lines
5.6 KiB
Java
170 lines
5.6 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.SharedPreferences;
|
||
|
import android.content.res.Resources;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.Arrays;
|
||
|
import java.util.Collection;
|
||
|
import java.util.List;
|
||
|
import o.C15715hv;
|
||
|
import o.EW;
|
||
|
import o.QG;
|
||
|
import o.QK;
|
||
|
import o.QN;
|
||
|
import o.QO;
|
||
|
import o.QR;
|
||
|
|
||
|
/* renamed from: o.yP, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class C17621yP extends C16181lx {
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
@InterfaceC13391fZD
|
||
|
public C17621yP(Resources resources, SharedPreferences sharedPreferences) {
|
||
|
super(resources, sharedPreferences);
|
||
|
C14957gcv.e(resources, "");
|
||
|
C14957gcv.e(sharedPreferences, "");
|
||
|
}
|
||
|
|
||
|
public final EW b(TJ tj, kkD kkd) {
|
||
|
C14957gcv.e(tj, "");
|
||
|
C14957gcv.e(kkd, "");
|
||
|
this.a.clear();
|
||
|
QN.HBt a = QN.a();
|
||
|
a.f = e(C15715hv.tOB.review_success_transfer);
|
||
|
a.d = C15715hv.IeS.ic_check_circle_black_48dp;
|
||
|
a.a = d(kkd.q);
|
||
|
a.c = c(C15715hv.tOB.reference_id, kkd.s);
|
||
|
this.a.add(new QN(a, YD.REVAMP_SUCCESS_HEADER, (byte) 0));
|
||
|
this.a.add(new QQ(true));
|
||
|
ArrayList arrayList = new ArrayList();
|
||
|
Jky jky = kkd.c;
|
||
|
C14851gaI c14851gaI = jky != null ? jky.e : null;
|
||
|
if (c14851gaI == null) {
|
||
|
c14851gaI = C14851gaI.c;
|
||
|
}
|
||
|
for (jSX jsx : c14851gaI) {
|
||
|
if (jsx != null) {
|
||
|
arrayList.add(new XL(jsx.f, jsx.i, jsx.d, jsx.c, jsx.e, jsx.b));
|
||
|
}
|
||
|
}
|
||
|
TO to = new TO(arrayList);
|
||
|
C14957gcv.e(to, "");
|
||
|
tj.d = to;
|
||
|
QK.LWm e = QK.e();
|
||
|
e.g = this.e.getString(C15715hv.tOB.from);
|
||
|
e.h = tj.a;
|
||
|
e.a = c(tj.b, true);
|
||
|
e.c = C6583cXR.VR_(C15715hv.IeS.bankicon_scb).toString();
|
||
|
this.a.add(new QK(e, (byte) 0));
|
||
|
QK.LWm e2 = QK.e();
|
||
|
e2.g = this.e.getString(C15715hv.tOB.to);
|
||
|
e2.h = tj.i.a;
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
String string = this.e.getString(C15715hv.tOB.biller_ac, C6583cXR.u(tj.c));
|
||
|
StringBuilder sb2 = new StringBuilder();
|
||
|
sb2.append(string);
|
||
|
sb2.append("\n");
|
||
|
sb.append(sb2.toString());
|
||
|
String str = tj.f;
|
||
|
String str2 = tj.g;
|
||
|
StringBuilder sb3 = new StringBuilder();
|
||
|
sb3.append(str);
|
||
|
sb3.append(" : ");
|
||
|
sb3.append(str2);
|
||
|
sb.append(sb3.toString());
|
||
|
if (tj.f8373o.length() > 0 && tj.n.length() > 0) {
|
||
|
String str3 = tj.n;
|
||
|
String str4 = tj.f8373o;
|
||
|
StringBuilder sb4 = new StringBuilder("\n");
|
||
|
sb4.append(str3);
|
||
|
sb4.append(" : ");
|
||
|
sb4.append(str4);
|
||
|
sb.append(sb4.toString());
|
||
|
}
|
||
|
if (tj.l.length() > 0 && tj.m.length() > 0) {
|
||
|
String str5 = tj.m;
|
||
|
String str6 = tj.l;
|
||
|
StringBuilder sb5 = new StringBuilder("\n");
|
||
|
sb5.append(str5);
|
||
|
sb5.append(" : ");
|
||
|
sb5.append(str6);
|
||
|
sb.append(sb5.toString());
|
||
|
}
|
||
|
String obj = sb.toString();
|
||
|
C14957gcv.c((Object) obj, "");
|
||
|
e2.a = obj;
|
||
|
e2.c = tj.i.b;
|
||
|
e2.d = C15715hv.IeS.ic_biller_default;
|
||
|
e2.k = true;
|
||
|
this.a.add(new QK(e2, (byte) 0));
|
||
|
this.a.add(new QQ(true));
|
||
|
QO.IeS a2 = QO.a();
|
||
|
a2.g = this.e.getString(C15715hv.tOB.amount);
|
||
|
a2.h = c(Double.valueOf(tj.h));
|
||
|
a2.l = true;
|
||
|
this.a.add(a2.d());
|
||
|
boolean z = tj.k <= 0.0d;
|
||
|
QO.IeS a3 = QO.a();
|
||
|
a3.g = this.e.getString(C15715hv.tOB.nsip_fee);
|
||
|
a3.h = c(Double.valueOf(tj.k));
|
||
|
a3.k = true;
|
||
|
if (z) {
|
||
|
a3.m = true;
|
||
|
}
|
||
|
QO d = a3.d();
|
||
|
String str7 = tj.j;
|
||
|
if (str7 == null || str7.length() == 0) {
|
||
|
if (!(!tj.d.b.isEmpty())) {
|
||
|
this.a.add(d);
|
||
|
} else {
|
||
|
this.a.add(d);
|
||
|
this.a.add(new QQ(true));
|
||
|
QG.RVV a4 = QG.a();
|
||
|
a4.e = tj.d.b;
|
||
|
this.a.add(new QG((QG.RVV<?>) a4));
|
||
|
}
|
||
|
} else {
|
||
|
this.a.add(d);
|
||
|
this.a.add(new QQ(true));
|
||
|
if (!tj.d.b.isEmpty()) {
|
||
|
QR.LWm b = QR.b();
|
||
|
b.g = this.e.getString(C15715hv.tOB.note);
|
||
|
b.e = tj.j;
|
||
|
this.a.add(new QR(b, (byte) 0));
|
||
|
QG.RVV a5 = QG.a();
|
||
|
a5.e = tj.d.b;
|
||
|
this.a.add(new QG((QG.RVV<?>) a5));
|
||
|
} else {
|
||
|
QR.LWm b2 = QR.b();
|
||
|
b2.g = this.e.getString(C15715hv.tOB.note);
|
||
|
b2.e = tj.j;
|
||
|
this.a.add(new QR(b2, (byte) 0));
|
||
|
}
|
||
|
}
|
||
|
EW.LWm b3 = EW.b(this.a, "Nsip_".concat(String.valueOf(kkd.s)));
|
||
|
b3.n = true;
|
||
|
gcH gch = gcH.d;
|
||
|
String string2 = this.e.getString(C15715hv.tOB.remaining_balance);
|
||
|
C14957gcv.c((Object) string2, "");
|
||
|
String format = String.format(string2, Arrays.copyOf(new Object[]{e(C15715hv.tOB.nsip_transaction), c(Double.valueOf(kkd.i))}, 2));
|
||
|
C14957gcv.c((Object) format, "");
|
||
|
b3.f = format;
|
||
|
EW c = b3.c();
|
||
|
C14957gcv.c(c, "");
|
||
|
return c;
|
||
|
}
|
||
|
|
||
|
public static List<QI> e(List<JAH> list) {
|
||
|
if (list == null) {
|
||
|
return null;
|
||
|
}
|
||
|
List<JAH> list2 = list;
|
||
|
C14957gcv.e(list2, "");
|
||
|
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
|
||
|
for (JAH jah : list2) {
|
||
|
arrayList.add(new QI(jah.c, jah.b));
|
||
|
}
|
||
|
return arrayList;
|
||
|
}
|
||
|
}
|