Remove subtitle of system default
Bug: 226894987 Test: manual Change-Id: Iaa5e680567f5bb1d52f9a3ea911f1b573ba5b238
This commit is contained in:
@@ -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