Merge "Fix enable-exclusive atomic api" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-02-12 04:56:23 +00:00
committed by Android (Google) Code Review

View File

@@ -335,6 +335,7 @@ final class OverlayManagerShellCommand extends ShellCommand {
final List<OverlayInfo> overlaysForTarget =
mInterface.getOverlayInfosForTarget(overlayInfo.targetPackageName, userId);
overlaysForTarget.remove(overlayInfo);
final OverlayManagerTransaction.Builder builder = new OverlayManagerTransaction.Builder();
for (final OverlayInfo disableOverlay : overlaysForTarget) {
if ((inCategory && !Objects.equals(disableOverlay.category,overlayInfo.category))