65 lines
2.0 KiB
Java
65 lines
2.0 KiB
Java
package o;
|
|
|
|
import android.content.SharedPreferences;
|
|
import android.content.res.Resources;
|
|
import java.text.NumberFormat;
|
|
import java.util.ArrayList;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.Locale;
|
|
|
|
/* renamed from: o.nM, reason: case insensitive filesystem */
|
|
/* loaded from: classes3.dex */
|
|
public final class C16305nM extends C16157lj {
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static /* synthetic */ Integer e(Integer num) {
|
|
return num;
|
|
}
|
|
|
|
@InterfaceC13391fZD
|
|
public C16305nM(Resources resources, SharedPreferences sharedPreferences) {
|
|
super(resources, sharedPreferences);
|
|
}
|
|
|
|
public static List<HA> d(List<uAa> list, C0494Hx c0494Hx) {
|
|
int i;
|
|
ArrayList arrayList = new ArrayList();
|
|
for (int i2 = 0; i2 < list.size(); i2++) {
|
|
uAa uaa = list.get(i2);
|
|
HA ha = new HA();
|
|
ha.e = uaa.d;
|
|
ha.d = uaa.c;
|
|
ha.b = uaa.a;
|
|
ha.a = uaa.h;
|
|
String format = NumberFormat.getInstance(Locale.getDefault()).format(uaa.b);
|
|
String format2 = NumberFormat.getInstance(Locale.getDefault()).format(uaa.e);
|
|
if (i2 == list.size() - 1) {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(format);
|
|
sb.append(" +");
|
|
ha.h = sb.toString();
|
|
} else {
|
|
StringBuilder sb2 = new StringBuilder();
|
|
sb2.append(format);
|
|
sb2.append(" - ");
|
|
sb2.append(format2);
|
|
ha.h = sb2.toString();
|
|
}
|
|
if (c0494Hx.n != null) {
|
|
Iterator<C0486Hr> it = c0494Hx.n.iterator();
|
|
i = 0;
|
|
while (it.hasNext()) {
|
|
if (it.next().b.equalsIgnoreCase(uaa.h)) {
|
|
i++;
|
|
}
|
|
}
|
|
} else {
|
|
i = 0;
|
|
}
|
|
ha.c = i;
|
|
arrayList.add(ha);
|
|
}
|
|
return arrayList;
|
|
}
|
|
}
|