Use given name instead of full name for the initial population of User name.

Bug: 7406217

Change-Id: I5006039ef146369f569445d0fcbaf82fd163343e
This commit is contained in:
Amith Yamasani
2012-10-23 15:36:16 -07:00
parent 56a166e9e3
commit 8d40fac706
3 changed files with 73 additions and 12 deletions

View File

@@ -53,7 +53,7 @@ public class ProfileUpdateReceiver extends BroadcastReceiver {
int userId = UserHandle.myUserId();
UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE);
String profileName = Utils.getMeProfileName(context);
String profileName = Utils.getMeProfileName(context, false /* partial name */);
if (profileName != null && profileName.length() > 0) {
um.setUserName(userId, profileName);
// Flag that we've written the profile one time at least. No need to do it in the future.