[automerge] Remove subtitle of system default 2p: 9ee9787dd3

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17742044

Bug: 226894987
Change-Id: I243580150c421ee8291cbddce1aacee150bd82ee
This commit is contained in:
Calvin Pan
2022-04-13 09:16:21 +00:00
committed by Presubmit Automerger Backend
2 changed files with 2 additions and 4 deletions

View File

@@ -276,9 +276,7 @@ public class AppLocaleDetails extends SettingsPreferenceFragment {
final Context contextAsUser = context.createContextAsUser(userHandle, 0);
Locale appLocale = getAppDefaultLocale(contextAsUser, entry.info.packageName);
if (appLocale == null) {
Locale systemLocale = Locale.getDefault();
return context.getString(R.string.preference_of_system_locale_summary,
systemLocale.getDisplayName(systemLocale));
return context.getString(R.string.preference_of_system_locale_summary);
} else {
return appLocale.getDisplayName(appLocale);
}