125 lines
4.3 KiB
Java
125 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.Iterator;
|
|
import java.util.List;
|
|
import kotlin.NoWhenBranchMatchedException;
|
|
|
|
/* renamed from: o.xn, reason: case insensitive filesystem */
|
|
/* loaded from: classes3.dex */
|
|
public final class C17558xn extends C16157lj {
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
@InterfaceC13391fZD
|
|
public C17558xn(Resources resources, SharedPreferences sharedPreferences) {
|
|
super(resources, sharedPreferences);
|
|
C14957gcv.e(resources, "");
|
|
C14957gcv.e(sharedPreferences, "");
|
|
}
|
|
|
|
private final String c(C16955siY c16955siY) {
|
|
String str;
|
|
String str2;
|
|
String str3;
|
|
String str4;
|
|
String str5;
|
|
String str6;
|
|
String str7 = "";
|
|
if (b()) {
|
|
if (c16955siY == null || (str4 = c16955siY.a) == null) {
|
|
str4 = "";
|
|
}
|
|
if (c16955siY == null || (str5 = c16955siY.j) == null) {
|
|
str5 = "";
|
|
}
|
|
if (c16955siY != null && (str6 = c16955siY.c) != null) {
|
|
str7 = str6;
|
|
}
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(str4);
|
|
sb.append(" ");
|
|
sb.append(str5);
|
|
sb.append(" ");
|
|
sb.append(str7);
|
|
return sb.toString();
|
|
}
|
|
if (c16955siY == null || (str = c16955siY.e) == null) {
|
|
str = "";
|
|
}
|
|
if (c16955siY == null || (str2 = c16955siY.b) == null) {
|
|
str2 = "";
|
|
}
|
|
if (c16955siY != null && (str3 = c16955siY.d) != null) {
|
|
str7 = str3;
|
|
}
|
|
StringBuilder sb2 = new StringBuilder();
|
|
sb2.append(str);
|
|
sb2.append(" ");
|
|
sb2.append(str2);
|
|
sb2.append(" ");
|
|
sb2.append(str7);
|
|
return sb2.toString();
|
|
}
|
|
|
|
private List<RU> d(List<rsn> list, boolean z) {
|
|
if (list != null) {
|
|
List<rsn> list2 = list;
|
|
C14957gcv.e(list2, "");
|
|
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
|
|
Iterator<T> it = list2.iterator();
|
|
while (it.hasNext()) {
|
|
arrayList.add(b((rsn) it.next(), z));
|
|
}
|
|
return arrayList;
|
|
}
|
|
return C14851gaI.c;
|
|
}
|
|
|
|
public static /* synthetic */ RK c(C17558xn c17558xn, boolean z, boolean z2, PuL puL) {
|
|
C14957gcv.e(c17558xn, "");
|
|
C14957gcv.c(puL, "");
|
|
return c17558xn.e(puL, z, z2);
|
|
}
|
|
|
|
public final RK e(PuL puL, boolean z, boolean z2) {
|
|
String str;
|
|
C14957gcv.e(puL, "");
|
|
int i = puL.e;
|
|
String str2 = puL.i;
|
|
String c = c(Double.valueOf(puL.f));
|
|
C14957gcv.c((Object) c, "");
|
|
String str3 = puL.k;
|
|
if (gjJ.b((CharSequence) puL.b)) {
|
|
str = puL.h;
|
|
} else {
|
|
str = puL.b;
|
|
}
|
|
RK rk = new RK(i, str2, c, str3, str, puL.h, puL.j, c(puL.c, z), c(puL.d), e(puL.d), e(puL.g, z2));
|
|
rk.e = puL.a;
|
|
return rk;
|
|
}
|
|
|
|
private static RL e(C16955siY c16955siY) {
|
|
return new RL(c16955siY != null ? c16955siY.a : null, c16955siY != null ? c16955siY.j : null, c16955siY != null ? c16955siY.c : null, c16955siY != null ? c16955siY.e : null, c16955siY != null ? c16955siY.b : null, c16955siY != null ? c16955siY.d : null);
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
private RO e(GLt gLt, boolean z) {
|
|
return new RO(gLt != null ? gLt.e : 0, d((List<rsn>) (gLt != null ? gLt.d : null), z));
|
|
}
|
|
|
|
private RU b(rsn rsnVar, boolean z) {
|
|
String b;
|
|
if (z) {
|
|
b = e(rsnVar != null ? rsnVar.h : null);
|
|
} else if (!z) {
|
|
b = b(rsnVar != null ? rsnVar.h : null);
|
|
} else {
|
|
throw new NoWhenBranchMatchedException();
|
|
}
|
|
return new RU(rsnVar != null ? rsnVar.i : null, rsnVar != null ? rsnVar.b : null, b, c(rsnVar != null ? Double.valueOf(rsnVar.c) : null), rsnVar != null ? rsnVar.f : null, rsnVar != null ? rsnVar.a : null, rsnVar != null ? rsnVar.e : null, false, rsnVar != null ? rsnVar.d : null, rsnVar != null ? rsnVar.j : null, rsnVar != null ? rsnVar.g : null);
|
|
}
|
|
}
|