Merge "[CDM] Remove role holders onPackageRemoveOrDataClearInternal"

This commit is contained in:
Guojing Yuan
2022-09-02 18:02:03 +00:00
committed by Android (Google) Code Review

View File

@@ -480,6 +480,10 @@ public class CompanionDeviceManagerService extends SystemService {
for (AssociationInfo association : associationsForPackage) {
mAssociationStore.removeAssociation(association.getId());
}
// Clear role holders
for (AssociationInfo association : associationsForPackage) {
maybeRemoveRoleHolderForAssociation(association);
}
mCompanionAppController.onPackagesChanged(userId);
}