Skip to content

Commit 4ee3649

Browse files
committed
Am: Clean mLaunchingProviders of all providers started by the client
Launching providers is removed from mLaunchingProviders when the client process dies and works as long as the client process had requested just one provider and not otherwise. Fix is to make sure mLaunchingProviders is updated to remove all providers launched by the client process. Change-Id: Ib4b8b44b6a102762a6558f65fb2e6dbf11d725ea
1 parent 9885362 commit 4ee3649

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

services/java/com/android/server/am/ActivityManagerService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10950,7 +10950,9 @@ boolean checkAppInLaunchingProvidersLocked(ProcessRecord app, boolean alwaysBad)
1095010950
restart = true;
1095110951
} else {
1095210952
removeDyingProviderLocked(app, cpr, true);
10953+
// cpr should have been removed from mLaunchingProviders
1095310954
NL = mLaunchingProviders.size();
10955+
i--;
1095410956
}
1095510957
}
1095610958
}

0 commit comments

Comments
 (0)