84 lines
3.1 KiB
Java
84 lines
3.1 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;
|
|
|
|
/* renamed from: o.vW, reason: case insensitive filesystem */
|
|
/* loaded from: classes3.dex */
|
|
public final class C17281vW extends C16157lj {
|
|
final C17276vT a;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
@InterfaceC13391fZD
|
|
public C17281vW(Resources resources, SharedPreferences sharedPreferences, C17276vT c17276vT) {
|
|
super(resources, sharedPreferences);
|
|
C14957gcv.e(resources, "");
|
|
C14957gcv.e(sharedPreferences, "");
|
|
C14957gcv.e(c17276vT, "");
|
|
this.a = c17276vT;
|
|
}
|
|
|
|
public final List<C14569fvg> d(List<QC> list) {
|
|
C14957gcv.e(list, "");
|
|
List<QC> list2 = list;
|
|
C14957gcv.e(list2, "");
|
|
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
|
|
for (QC qc : list2) {
|
|
int i = qc.a;
|
|
List<C0884Qt> list3 = qc.e;
|
|
C14957gcv.e(list3, "");
|
|
ArrayList arrayList2 = new ArrayList(list3 instanceof Collection ? list3.size() : 10);
|
|
int i2 = 0;
|
|
for (Object obj : list3) {
|
|
int i3 = i2 + 1;
|
|
if (i2 >= 0) {
|
|
C0884Qt c0884Qt = (C0884Qt) obj;
|
|
C17276vT c17276vT = this.a;
|
|
C14957gcv.e(c0884Qt, "");
|
|
String a = new gdW("^\\d+\\.\\ ").a(c0884Qt.e, "");
|
|
String a2 = new gdW("^\\d+\\.\\ ").a(c0884Qt.b, "");
|
|
List<C0889Qv> list4 = c0884Qt.c;
|
|
C17272vR c17272vR = c17276vT.a;
|
|
C14957gcv.e(list4, "");
|
|
ArrayList arrayList3 = new ArrayList(list4 instanceof Collection ? list4.size() : 10);
|
|
for (C0889Qv c0889Qv : list4) {
|
|
C14957gcv.e(c0889Qv, "");
|
|
arrayList3.add(new slh(c0889Qv.d, c0889Qv.c, c0889Qv.e));
|
|
}
|
|
arrayList2.add(new WLx(i3, a, a2, arrayList3));
|
|
i2 = i3;
|
|
} else {
|
|
throw new ArithmeticException("Index overflow has happened.");
|
|
}
|
|
}
|
|
arrayList.add(new C14569fvg(i, arrayList2));
|
|
}
|
|
return arrayList;
|
|
}
|
|
|
|
/* renamed from: o.vW$HBt */
|
|
/* loaded from: classes3.dex */
|
|
public static final class HBt<T> implements Comparator {
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // java.util.Comparator
|
|
public final int compare(T t, T t2) {
|
|
Integer valueOf = Integer.valueOf(((WLx) t).d);
|
|
Integer valueOf2 = Integer.valueOf(((WLx) t2).d);
|
|
if (valueOf == valueOf2) {
|
|
return 0;
|
|
}
|
|
if (valueOf == null) {
|
|
return -1;
|
|
}
|
|
if (valueOf2 == null) {
|
|
return 1;
|
|
}
|
|
return valueOf.compareTo(valueOf2);
|
|
}
|
|
}
|
|
}
|