Skip to content

Commit 427dccc

Browse files
Amith YamasaniAndroid (Google) Code Review
authored andcommitted
Merge "Fix build part 2" into jb-mr1-dev
2 parents 5c6912c + fc6e0ca commit 427dccc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/java/com/android/server/pm/UserManagerService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,8 @@ public UserInfo createUser(String name, int flags) {
506506
Intent addedIntent = new Intent(Intent.ACTION_USER_ADDED);
507507
addedIntent.putExtra(Intent.EXTRA_USER_HANDLE, userInfo.id);
508508
mContext.sendBroadcast(addedIntent, android.Manifest.permission.MANAGE_USERS);
509-
mContext.sendBroadcastToUser(new Intent(Intent.ACTION_BOOT_COMPLETED), userInfo.id);
509+
mContext.sendBroadcastAsUser(new Intent(Intent.ACTION_BOOT_COMPLETED),
510+
new UserHandle(userInfo.id));
510511
}
511512
return userInfo;
512513
}

0 commit comments

Comments
 (0)