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

143 lines
4.3 KiB
Java

package o;
import android.content.SharedPreferences;
import android.content.res.Resources;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
import java.util.List;
import o.C15715hv;
/* renamed from: o.uV, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C17169uV extends C16157lj {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C17169uV(Resources resources, SharedPreferences sharedPreferences) {
super(resources, sharedPreferences);
C14957gcv.e(resources, "");
C14957gcv.e(sharedPreferences, "");
}
/* renamed from: o.uV$HBt */
/* loaded from: classes3.dex */
public static final class HBt {
private HBt() {
}
public /* synthetic */ HBt(byte b) {
this();
}
}
/* renamed from: o.uV$IeS */
/* loaded from: classes3.dex */
public static final class IeS<T> implements Comparator {
private C17169uV a;
/* JADX WARN: Multi-variable type inference failed */
@Override // java.util.Comparator
public final int compare(T t, T t2) {
Float k = C17169uV.k(((qRK) t2).a);
Float k2 = C17169uV.k(((qRK) t).a);
if (k == k2) {
return 0;
}
if (k == null) {
return -1;
}
if (k2 == null) {
return 1;
}
return k.compareTo(k2);
}
public IeS(C17169uV c17169uV) {
this.a = c17169uV;
}
}
/* renamed from: o.uV$RVV */
/* loaded from: classes3.dex */
public static final class RVV<T> implements Comparator {
private Comparator d;
/* JADX WARN: Multi-variable type inference failed */
@Override // java.util.Comparator
public final int compare(T t, T t2) {
int compareTo;
int compare = this.d.compare(t, t2);
if (compare != 0) {
return compare;
}
String str = ((qRK) t).b;
String str2 = ((qRK) t2).b;
if (str == str2) {
compareTo = 0;
} else if (str == null) {
compareTo = -1;
} else {
compareTo = str2 == null ? 1 : str.compareTo(str2);
}
return compareTo;
}
public RVV(Comparator comparator) {
this.d = comparator;
}
}
public static final /* synthetic */ Float k(String str) {
return gdZ.a(gdZ.c(str, (CharSequence) "%"));
}
public final C0816Pb e(String str, pQV pqv, boolean z) {
C14957gcv.e(pqv, "");
String str2 = str == null ? "" : str;
String str3 = pqv.b;
if (str3.length() != 0) {
str3 = c(C15715hv.tOB.single_form_icon_risk_level, str3);
}
String str4 = str3;
C14957gcv.c((Object) str4, "");
String str5 = pqv.a;
String str6 = pqv.e;
List<qRK> list = pqv.d;
ArrayList arrayList = new ArrayList();
for (Object obj : list) {
qRK qrk = (qRK) obj;
if (qrk.b.length() > 0 && qrk.a.length() > 0 && !C14957gcv.b((Object) qrk.a, (Object) "0.00%")) {
arrayList.add(obj);
}
}
ArrayList arrayList2 = arrayList;
if (z) {
arrayList2 = C14881gav.a((Iterable) arrayList2, (Comparator) new RVV(new IeS(this)));
}
Iterable<qRK> iterable = arrayList2;
C14957gcv.e(iterable, "");
ArrayList arrayList3 = new ArrayList(iterable instanceof Collection ? ((Collection) iterable).size() : 10);
for (qRK qrk2 : iterable) {
arrayList3.add(new OX(qrk2.a, qrk2.b));
}
ArrayList arrayList4 = arrayList3;
List<String> list2 = pqv.c;
StringBuilder sb = new StringBuilder();
for (String str7 : list2) {
if (sb.length() == 0) {
sb = new StringBuilder(str7);
} else {
sb.append("\n\n");
sb.append(str7);
}
}
String obj2 = sb.toString();
C14957gcv.c((Object) obj2, "");
return new C0816Pb(str2, str4, str5, str6, arrayList4, obj2);
}
static {
new HBt((byte) 0);
}
}