am 224904e0: Merge "Prevent ANR when broadcast receiver is killed" into lmp-mr1-dev

* commit '224904e01a2efb01c6276eb64fba531a3d30a42b':
  Prevent ANR when broadcast receiver is killed
This commit is contained in:
Craig Mautner
2014-12-04 19:52:21 +00:00
committed by Android Git Automerger

View File

@@ -296,7 +296,7 @@ public final class BroadcastQueue {
public void skipCurrentReceiverLocked(ProcessRecord app) { public void skipCurrentReceiverLocked(ProcessRecord app) {
boolean reschedule = false; boolean reschedule = false;
BroadcastRecord r = app.curReceiver; BroadcastRecord r = app.curReceiver;
if (r != null) { if (r != null && r.queue == this) {
// The current broadcast is waiting for this app's receiver // The current broadcast is waiting for this app's receiver
// to be finished. Looks like that's not going to happen, so // to be finished. Looks like that's not going to happen, so
// let the broadcast continue. // let the broadcast continue.