Skip to content
Snippets Groups Projects
Commit b54b1a43 authored by Sudheer Shanka's avatar Sudheer Shanka Committed by Android (Google) Code Review
Browse files

Merge "Don't cancel PendingIntents unless the stay_stopped flag is on." into main

parents 72ad48c1 63d69924
No related branches found
No related tags found
No related merge requests found
......@@ -4418,7 +4418,9 @@ public class ActivityManagerService extends IActivityManager.Stub
packageName, null, userId);
}
 
if (packageName == null || uninstalling || packageStateStopped) {
final boolean clearPendingIntentsForStoppedApp = (android.content.pm.Flags.stayStopped()
&& packageStateStopped);
if (packageName == null || uninstalling || clearPendingIntentsForStoppedApp) {
didSomething |= mPendingIntentController.removePendingIntentsForPackage(
packageName, userId, appId, doit);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment