summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Yasin Kilicdere <tyk@google.com> 2022-02-10 23:04:56 +0000
committer Yasin Kilicdere <tyk@google.com> 2022-03-03 18:32:23 +0000
commitd03224f32646e6bcb68f0c9fa12fe63d2502e88c (patch)
tree7f5b590b8b4b196c13048e7dea8729f775bbfae2 /libs/androidfw/StringPool.cpp
parentc4c1ac53fdb8217e3d15dded3e882617236c1fee (diff)
Fix Guest string was not translated in UMS.userWithName()
Guest users name was stuck with the language when it was created, and it wasn't changing with the active language setting. To solve that, removed name parameter from UM.createGuest() and created the guest user with a null name, then made changes in UMS.userWithName() to fill the name of guest user with the active language's translation when it has a null name. Creating a guest with a specific name is still supported through UM.createUser API. Bug: 185309160 Test: atest com.android.server.pm.UserManagerTest Change-Id: I2745aed0ea722765a11c6da40fb4159146da54c7 Merged-In: I2745aed0ea722765a11c6da40fb4159146da54c7 (cherry picked from commit c556777ca4af81c2dde2fa383baae20398e3029e)
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions