Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 443d35a0 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Maybe fix issue #62199092: Alarm didn't ring, upcoming alarm...

...notification was stuck

Don't deliver to a ProcessRecord that has been killed, instead
go through creating a new process.

Test: manual

Change-Id: I74eb0843200b5b99d6496e4b3f6eef5ed38c926e
parent d27d5d9e
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -614,9 +614,10 @@ public final class BroadcastQueue {
            skip = true;
        }

        if (!skip && (filter.receiverList.app == null || filter.receiverList.app.crashing)) {
        if (!skip && (filter.receiverList.app == null || filter.receiverList.app.killed
                || filter.receiverList.app.crashing)) {
            Slog.w(TAG, "Skipping deliver [" + mQueueName + "] " + r
                    + " to " + filter.receiverList + ": process crashing");
                    + " to " + filter.receiverList + ": process gone or crashing");
            skip = true;
        }

@@ -1317,7 +1318,7 @@ public final class BroadcastQueue {
            }

            // Is this receiver's application already running?
            if (app != null && app.thread != null) {
            if (app != null && app.thread != null && !app.killed) {
                try {
                    app.addPackage(info.activityInfo.packageName,
                            info.activityInfo.applicationInfo.versionCode, mService.mProcessStats);