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

Commit 24648805 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix UOE issue for immutable collection" into main

parents 38fd5e83 07e08a37
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -308,7 +308,9 @@ final class OverlayManagerServiceImpl {
            Slog.d(TAG, "onPackageRemoved pkgName=" + pkgName + " userId=" + userId);
        }
        // Update the state of all overlays that target this package.
        final Set<UserPackage> targets = updateOverlaysForTarget(pkgName, userId, 0 /* flags */);
        Set<UserPackage> targets = Collections.emptySet();
        targets = CollectionUtils.addAll(targets,
                updateOverlaysForTarget(pkgName, userId, 0 /* flags */));

        // Remove all the overlays this package declares.
        return CollectionUtils.addAll(targets,