Fix QPR2 build

Change-Id: I03bdfacf5d8432ac9e4c66723ecacbf5a4464154
This commit is contained in:
Michael Bestas
2024-03-05 23:17:41 +02:00
committed by Michael Bestas
parent 935ba6902d
commit 79e9f1cdbd

View File

@@ -204,10 +204,9 @@ public class LocaleActivity extends BaseSetupWizardActivity {
// If that fails, fall back to preferred languages reported
// by the sim
if (locale == null) {
String localeString = telephonyManager.getLocaleFromDefaultSim();
if (localeString != null) {
locale = Locale.forLanguageTag(localeString);
Locale simLocale = telephonyManager.getSimLocale();
if (simLocale != null) {
locale = simLocale;
}
}
Locale finalLocale = locale;