NetMirror.apk
Download file
package androidx.core.os;
import android.os.LocaleList;
import java.util.Locale;
/* JADX INFO: loaded from: classes.dex */
public final class e {
/* JADX INFO: renamed from: b, reason: collision with root package name */
private static final e f4520b = a(new Locale[0]);
/* JADX INFO: renamed from: a, reason: collision with root package name */
private final f f4521a;
static class a {
/* JADX INFO: renamed from: a, reason: collision with root package name */
private static final Locale[] f4522a = {new Locale("en", "XA"), new Locale("ar", "XB")};
static Locale a(String str) {
return Locale.forLanguageTag(str);
}
private static boolean b(Locale locale) {
for (Locale locale2 : f4522a) {
if (locale2.equals(locale)) {
return true;
}
}
return false;
}
static boolean c(Locale locale, Locale locale2) {
if (locale.equals(locale2)) {
return true;
}
if (!locale.getLanguage().equals(locale2.getLanguage()) || b(locale) || b(locale2)) {
return false;
}
String strA = androidx.core.text.a.a(locale);
if (!strA.isEmpty()) {
return strA.equals(androidx.core.text.a.a(locale2));
}
String country = locale.getCountry();
return country.isEmpty() || country.equals(locale2.getCountry());
}
}
static class b {
static LocaleList a(Locale... localeArr) {
return new LocaleList(localeArr);
}
static LocaleList b() {
return LocaleList.getAdjustedDefault();
}
static LocaleList c() {
return LocaleList.getDefault();
}
}
private e(f fVar) {
this.f4521a = fVar;
}
public static e a(Locale... localeArr) {
return h(b.a(localeArr));
}
public static e b(String str) {
if (str == null || str.isEmpty()) {
return d();
}
String[] strArrSplit = str.split(",", -1);
int length = strArrSplit.length;
Locale[] localeArr = new Locale[length];
for (int i3 = 0; i3 < length; i3++) {
localeArr[i3] = a.a(strArrSplit[i3]);
}
return a(localeArr);
}
public static e d() {
return f4520b;
}
public static e h(LocaleList localeList) {
return new e(new g(localeList));
}
public Locale c(int i3) {
return this.f4521a.get(i3);
}
public boolean e() {
return this.f4521a.isEmpty();
}
public boolean equals(Object obj) {
return (obj instanceof e) && this.f4521a.equals(((e) obj).f4521a);
}
public int f() {
return this.f4521a.size();
}
public String g() {
return this.f4521a.a();
}
public int hashCode() {
return this.f4521a.hashCode();
}
public String toString() {
return this.f4521a.toString();
}
}
⚠️ This content was hidden by an advertisement filtering extension in your browser. Please disable it and reload the page to access the decompiled content.
We only display one small text ad to keep this service free. Here's what it looks like:
Read the Docs for Business: You write the docs. We do the rest.
Try it today!Ad by EthicalAds
Download file