32 lines
860 B
Java
32 lines
860 B
Java
package com.google.android.gms.internal.p002firebaseauthapi;
|
|
|
|
import java.util.Locale;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class zzxr {
|
|
public static String zza() {
|
|
Locale locale = Locale.getDefault();
|
|
StringBuilder sb = new StringBuilder();
|
|
zzb(sb, locale);
|
|
if (!locale.equals(Locale.US)) {
|
|
if (sb.length() > 0) {
|
|
sb.append(", ");
|
|
}
|
|
zzb(sb, Locale.US);
|
|
}
|
|
return sb.toString();
|
|
}
|
|
|
|
private static void zzb(StringBuilder sb, Locale locale) {
|
|
String language = locale.getLanguage();
|
|
if (language != null) {
|
|
sb.append(language);
|
|
String country = locale.getCountry();
|
|
if (country != null) {
|
|
sb.append("-");
|
|
sb.append(country);
|
|
}
|
|
}
|
|
}
|
|
}
|