Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit caf664cd authored by Allen Su's avatar Allen Su
Browse files

Fix unnecessary dialog

Bug: 388426025
Test: UI verification
Flag: com.android.settings.flags.regional_preferences_api_enabled
Change-Id: Ie4adff23b5b2fc26ef97478f6732eb300d088bd7
parent 9e09f009
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -154,7 +154,7 @@ public abstract class RegionPickerBaseListPreferenceController extends BasePrefe

    private List<LocaleStore.LocaleInfo> getSortedLocaleList(
            List<LocaleStore.LocaleInfo> localeInfos) {
        final Locale sortingLocale = Locale.getDefault();
        final Locale sortingLocale = LocaleList.getDefault().get(0);
        final LocaleHelper.LocaleInfoComparator comp =
                new LocaleHelper.LocaleInfoComparator(sortingLocale, true);
        Collections.sort(localeInfos, comp);
@@ -162,7 +162,7 @@ public abstract class RegionPickerBaseListPreferenceController extends BasePrefe
    }

    private void switchRegion(LocaleStore.LocaleInfo localeInfo) {
        if (localeInfo.getLocale().equals(Locale.getDefault())) {
        if (localeInfo.getLocale().equals(LocaleList.getDefault().get(0))) {
            return;
        }