summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/users
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2012-10-23 15:36:16 -0700
committerAmith Yamasani <yamasani@google.com>2012-10-24 10:30:51 -0700
commit8d40fac706d206355f9a4be58744fb1a8cc3417d (patch)
tree269731225d45771e89aee994f75db21cd3b44118 /src/com/android/settings/users
parent56a166e9e3cac96246bd724ceea96846fc9e41e1 (diff)
downloadpackages_apps_settings-8d40fac706d206355f9a4be58744fb1a8cc3417d.zip
packages_apps_settings-8d40fac706d206355f9a4be58744fb1a8cc3417d.tar.gz
packages_apps_settings-8d40fac706d206355f9a4be58744fb1a8cc3417d.tar.bz2
Use given name instead of full name for the initial population of User name.
Bug: 7406217 Change-Id: I5006039ef146369f569445d0fcbaf82fd163343e
Diffstat (limited to 'src/com/android/settings/users')
-rw-r--r--src/com/android/settings/users/ProfileUpdateReceiver.java2
-rw-r--r--src/com/android/settings/users/UserSettings.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/settings/users/ProfileUpdateReceiver.java b/src/com/android/settings/users/ProfileUpdateReceiver.java
index 88daa58..955ee4d 100644
--- a/src/com/android/settings/users/ProfileUpdateReceiver.java
+++ b/src/com/android/settings/users/ProfileUpdateReceiver.java
@@ -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.
diff --git a/src/com/android/settings/users/UserSettings.java b/src/com/android/settings/users/UserSettings.java
index 984ac08..632dfe5 100644
--- a/src/com/android/settings/users/UserSettings.java
+++ b/src/com/android/settings/users/UserSettings.java
@@ -503,7 +503,7 @@ public class UserSettings extends SettingsPreferenceFragment
}
private String getProfileName() {
- String name = Utils.getMeProfileName(getActivity());
+ String name = Utils.getMeProfileName(getActivity(), true);
if (name != null) {
mProfileExists = true;
}