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

Commit 861a3b2d authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Revert fix to issue #6880627: PendingIntent.getService() returns...

...stale intent of force stopped app

Fixing this caused other problems elsewhere that we don't have time
to address at this point.

Fixes issue #7338275: Tapping clock home screen widget doesn't open
alarms anymore

Change-Id: Iedc1fae5f62b6ead28d1895d709591358e5d6634
parent 6ffbe600
Loading
Loading
Loading
Loading
+42 −36
Original line number Diff line number Diff line
@@ -3930,6 +3930,11 @@ public final class ActivityManagerService extends ActivityManagerNative
            removeDyingProviderLocked(null, providers.get(i), true);
        }
        if (name == null) {
            // Remove pending intents.  For now we only do this when force
            // stopping users, because we have some problems when doing this
            // for packages -- app widgets are not currently cleaned up for
            // such packages, so they can be left with bad pending intents.
            if (mIntentSenderRecords.size() > 0) {
                Iterator<WeakReference<PendingIntentRecord>> it
                        = mIntentSenderRecords.values().iterator();
@@ -3975,6 +3980,7 @@ public final class ActivityManagerService extends ActivityManagerNative
                    }
                }
            }
        }
        if (doit) {
            if (purgeCache && name != null) {