Fix Guest string was not translated in UMS.userWithName()

This CL reverts the changes made in ag/14282598 since the issue is
solved from the source and removes 'String name' parameter from
UM.createGuest() calls.

Bug: 185309160
Test: atest UserDetailsSettingsTest
Change-Id: I92acad938d79e21b45af99cc76ff411022b61f1b
Merged-In: I92acad938d79e21b45af99cc76ff411022b61f1b
(cherry picked from commit ae871ba823)
This commit is contained in:
Yasin Kilicdere
2022-02-10 23:11:31 +00:00
parent cdb08ee92a
commit 3fc4642ab4
3 changed files with 9 additions and 22 deletions

View File

@@ -256,7 +256,7 @@ public class UserDetailsSettings extends SettingsPreferenceFragment
mSwitchUserPref.setTitle(
context.getString(com.android.settingslib.R.string.user_switch_to_user,
UserSettings.getUserName(context, mUserInfo)));
mUserInfo.name));
if (mUserCaps.mDisallowSwitchUser) {
mSwitchUserPref.setDisabledByAdmin(RestrictedLockUtilsInternal.getDeviceOwner(context));