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

Commit 2b301e14 authored by Guojing Yuan's avatar Guojing Yuan Committed by Android (Google) Code Review
Browse files

Merge "[CDM] Remove role holders onPackageRemoveOrDataClearInternal"

parents 603f7b5a 21c6a7f9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);
    }