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; /* renamed from: o.lT, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C16125lT extends C16157lj { private final String d; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C16125lT(Resources resources, SharedPreferences sharedPreferences, String str) { super(resources, sharedPreferences); C14957gcv.e(resources, ""); C14957gcv.e(sharedPreferences, ""); C14957gcv.e(str, ""); this.d = str; } public final List d(List list) { C14957gcv.e(list, ""); List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (C15941jmz c15941jmz : list2) { String str = c15941jmz.c; String str2 = c15941jmz.e; if (!C14957gcv.b((Object) this.d, (Object) "th")) { str = str2; } if (str == null) { str = ""; } if (str == null) { str = ""; } arrayList.add(str); } return arrayList; } public final List d(Lrj lrj) { C14957gcv.e(lrj, ""); List list = lrj.e; if (list != null) { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); Iterator it = list2.iterator(); while (it.hasNext()) { YXg yXg = (YXg) it.next(); C14957gcv.e(yXg, ""); String str = yXg.c; String str2 = yXg.d; String str3 = yXg.i; String str4 = yXg.b; String str5 = yXg.e; String str6 = yXg.g; String str7 = yXg.b; String str8 = yXg.c; if (!C14957gcv.b((Object) this.d, (Object) "th")) { str7 = str8; } String str9 = str7 == null ? "" : str7; String str10 = yXg.e; String str11 = yXg.d; if (!C14957gcv.b((Object) this.d, (Object) "th")) { str10 = str11; } String str12 = str10 == null ? "" : str10; String str13 = yXg.g; String str14 = yXg.i; Iterator it2 = it; if (!C14957gcv.b((Object) this.d, (Object) "th")) { str13 = str14; } arrayList.add(new C0406Fx(str, str2, str3, str4, str5, str6, str9, str12, str13 == null ? "" : str13, yXg.a)); it = it2; } return arrayList; } return C14851gaI.c; } }