Snap for 7584485 from c9076d3d36
to sc-release
Change-Id: Ifc607568202dbe64ea399b963cc9c96f86e6a8bf
This commit is contained in:
@@ -63,6 +63,9 @@ public class ProfileUpdateReceiver extends BroadcastReceiver {
|
|||||||
|
|
||||||
/** Returns whether the current user name is different from the default one. */
|
/** Returns whether the current user name is different from the default one. */
|
||||||
private static boolean isCurrentNameInteresting(Context context, UserManager um) {
|
private static boolean isCurrentNameInteresting(Context context, UserManager um) {
|
||||||
|
if (!um.isUserNameSet()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
final String currentName = um.getUserName();
|
final String currentName = um.getUserName();
|
||||||
final String defaultName = um.isRestrictedProfile() || um.isProfile() ?
|
final String defaultName = um.isRestrictedProfile() || um.isProfile() ?
|
||||||
context.getString(com.android.settingslib.R.string.user_new_profile_name) :
|
context.getString(com.android.settingslib.R.string.user_new_profile_name) :
|
||||||
|
Reference in New Issue
Block a user