From 68d881cf2d2b252f6f795cd64d43e316a1d736e5 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Mon, 5 Oct 2009 13:58:17 -0700 Subject: [PATCH] Fix issue #2166755: BroadcastReceiver trying to return result during a non-ordered broadcast Tell the broadcast receiver whether it is getting an initial sticky value, so it will be quiet about attempts to do ordered broadcast stuff. Note that the original bug being reported was not actually a crash, just an error log. So all we are doing here is making the log quieter. Change-Id: Iaf1b718d82093ec1197142410a64feff47eb3859 --- api/current.xml | 22 +++++++++++++ cmds/am/src/com/android/commands/am/Am.java | 3 +- core/java/android/app/ActivityThread.java | 16 ++++++---- .../android/app/ApplicationThreadNative.java | 6 ++-- core/java/android/app/IApplicationThread.java | 2 +- core/java/android/app/PendingIntent.java | 2 +- .../android/content/BroadcastReceiver.java | 32 ++++++++++++++++++- .../java/android/content/IIntentReceiver.aidl | 2 +- core/java/android/content/IntentSender.java | 2 +- .../server/am/ActivityManagerService.java | 21 ++++++------ .../android/server/am/BroadcastRecord.java | 11 ++++--- .../server/am/PendingIntentRecord.java | 2 +- 12 files changed, 92 insertions(+), 29 deletions(-) diff --git a/api/current.xml b/api/current.xml index e764fa5aa6076..9b0ea3aab168a 100644 --- a/api/current.xml +++ b/api/current.xml @@ -27787,6 +27787,28 @@ + + + +