Fix unnecessary dialog
Bug: 388426025 Test: UI verification Flag: com.android.settings.flags.regional_preferences_api_enabled Change-Id: Ie4adff23b5b2fc26ef97478f6732eb300d088bd7
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user