Merge "[Regional prefernce] Remove U extension in locale of app list" into udc-dev

This commit is contained in:
TreeHugger Robot
2023-03-28 13:33:59 +00:00
committed by Android (Google) Code Review

View File

@@ -213,7 +213,7 @@ public class AppLocaleDetails extends SettingsPreferenceFragment {
if (appLocale == null) {
return context.getString(R.string.preference_of_system_locale_summary);
} else {
return LocaleHelper.getDisplayName(appLocale, appLocale, true);
return LocaleHelper.getDisplayName(appLocale.stripExtensions(), appLocale, true);
}
}
}