From e98bde011c1a723b1dffa632d7dd3b194fb4084f Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Mon, 1 Oct 2012 11:30:47 -0700 Subject: [PATCH] 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 --- services/java/com/android/server/am/ActivityManagerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java index 3428326208b4a..35f1b59b4b6c8 100644 --- a/services/java/com/android/server/am/ActivityManagerService.java +++ b/services/java/com/android/server/am/ActivityManagerService.java @@ -11745,7 +11745,7 @@ public final class ActivityManagerService extends ActivityManagerNative users = mStartedUserArray; } else { // Caller wants broadcast to go to one specific user. - users = mCurrentUserArray; + users = new int[] {userId}; } // Figure out who all will receive this broadcast.