package o; import android.content.SharedPreferences; import android.content.res.Resources; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import o.PRA; /* renamed from: o.lV, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C16127lV extends C16157lj { @InterfaceC13391fZD public C16127lV(Resources resources, SharedPreferences sharedPreferences) { super(resources, sharedPreferences); } public static /* synthetic */ C0405Fw c(String str, EFH efh) { String str2; C0405Fw c0405Fw = new C0405Fw(); c0405Fw.b = efh.a; if ("th".equalsIgnoreCase(str)) { str2 = efh.b; } else { str2 = efh.d; } c0405Fw.d = str2; return c0405Fw; } public static /* synthetic */ C0405Fw a(C16127lV c16127lV, EFH efh) { String str; C0405Fw c0405Fw = new C0405Fw(); c0405Fw.b = efh.a; if ("th".equalsIgnoreCase(c16127lV.c())) { str = efh.b; } else { str = efh.d; } c0405Fw.d = str; return c0405Fw; } public static /* synthetic */ C0405Fw d(String str, C1259ZbO c1259ZbO) { C0405Fw c0405Fw = new C0405Fw(); c0405Fw.b = c1259ZbO.d; Urh urh = c1259ZbO.b; c0405Fw.d = "th".equalsIgnoreCase(str) ? urh.d : urh.b; return c0405Fw; } public final List d(zwR zwr) { Iterable arrayList; if (zwr.a == null) { arrayList = new ArrayList(); } else { arrayList = zwr.a; } YKU yku = new YKU(arrayList); List list = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(this) { // from class: o.lY private C16127lV a; @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { return C16127lV.a(this.a, (EFH) obj); } { this.a = this; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); if (!b()) { Collections.sort(list, new Comparator() { // from class: o.lU @Override // java.util.Comparator public final int compare(Object obj, Object obj2) { int compareToIgnoreCase; compareToIgnoreCase = ((C0405Fw) obj).d.compareToIgnoreCase(((C0405Fw) obj2).d); return compareToIgnoreCase; } }); } return list; } public final List a(zwR zwr, final String str) { YKU yku = new YKU(zwr.a); return (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(this, str) { // from class: o.ma private C16127lV a; private String c; @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { return C16127lV.c(this.c, (EFH) obj); } { this.a = this; this.c = str; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); } }