Merge changes from topic "presubmit-am-1d3c2787da5b4d3c85f04dc64ca85922" into tm-mainline-prod
* changes:
[automerge] Remove subtitle of system default 2p: 9ee9787dd3
Remove subtitle of system default
This commit is contained in:
committed by
Android (Google) Code Review
commit
fa3a25df06
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user