Fix dumb bug merging receivers for multiple users.
Also clean up some debug output. Change-Id: Ib19e47682e9ddfc6a234bd61d054275a362d28cc
This commit is contained in:
@@ -11432,7 +11432,7 @@ public final class ActivityManagerService extends ActivityManagerNative
|
||||
// Add the new results to the existing results, tracking
|
||||
// and de-dupping single user receivers.
|
||||
for (int i=0; i<newReceivers.size(); i++) {
|
||||
ResolveInfo ri = receivers.get(i);
|
||||
ResolveInfo ri = newReceivers.get(i);
|
||||
if ((ri.activityInfo.flags&ActivityInfo.FLAG_SINGLE_USER) != 0) {
|
||||
ComponentName cn = new ComponentName(
|
||||
ri.activityInfo.packageName, ri.activityInfo.name);
|
||||
|
||||
@@ -965,12 +965,12 @@ public class BroadcastQueue {
|
||||
if (!printed) {
|
||||
if (needSep) {
|
||||
pw.println();
|
||||
needSep = false;
|
||||
}
|
||||
needSep = true;
|
||||
printed = true;
|
||||
pw.println(" Active broadcasts [" + mQueueName + "]:");
|
||||
}
|
||||
pw.println(" Broadcast #" + i + ":");
|
||||
pw.println(" Active Broadcast " + mQueueName + " #" + i + ":");
|
||||
br.dump(pw, " ");
|
||||
}
|
||||
printed = false;
|
||||
@@ -985,9 +985,10 @@ public class BroadcastQueue {
|
||||
pw.println();
|
||||
}
|
||||
needSep = true;
|
||||
printed = true;
|
||||
pw.println(" Active ordered broadcasts [" + mQueueName + "]:");
|
||||
}
|
||||
pw.println(" Ordered Broadcast #" + i + ":");
|
||||
pw.println(" Active Ordered Broadcast " + mQueueName + " #" + i + ":");
|
||||
mOrderedBroadcasts.get(i).dump(pw, " ");
|
||||
}
|
||||
if (dumpPackage == null || (mPendingBroadcast != null
|
||||
@@ -1023,7 +1024,8 @@ public class BroadcastQueue {
|
||||
printed = true;
|
||||
}
|
||||
if (dumpAll) {
|
||||
pw.print(" Historical Broadcast #"); pw.print(i); pw.println(":");
|
||||
pw.print(" Historical Broadcast " + mQueueName + " #");
|
||||
pw.print(i); pw.println(":");
|
||||
r.dump(pw, " ");
|
||||
} else {
|
||||
if (i >= 50) {
|
||||
|
||||
Reference in New Issue
Block a user