Skip to content

Commit e98bde0

Browse files
author
Amith Yamasani
committed
Fix broadcast to a specific user
Bug: 7255777 Bug: 7263657 When userId is neither CURRENT nor ALL, the correct list of receivers was not being built, due to a typo in ActivityManagerService; Change-Id: Ib1dc627f0dbd1c91d02c718d2e4d2384ad687d1f
1 parent c56e560 commit e98bde0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/java/com/android/server/am/ActivityManagerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11745,7 +11745,7 @@ private final int broadcastIntentLocked(ProcessRecord callerApp,
1174511745
users = mStartedUserArray;
1174611746
} else {
1174711747
// Caller wants broadcast to go to one specific user.
11748-
users = mCurrentUserArray;
11748+
users = new int[] {userId};
1174911749
}
1175011750

1175111751
// Figure out who all will receive this broadcast.

0 commit comments

Comments
 (0)