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

Commit 8933a981 authored by Lingyu Feng's avatar Lingyu Feng Committed by Android (Google) Code Review
Browse files

Merge "Prevent task being launched on a TaskDisplayArea where shouldKeepNoTask" into main

parents d68d2f86 d22a504b
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3226,6 +3226,13 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
            return false;
        }

        if (DesktopExperienceFlags.ENABLE_MIRROR_DISPLAY_NO_ACTIVITY.isTrue()) {
            if (task.getTaskDisplayArea().shouldKeepNoTask()) {
                Slog.w(TAG, "canLaunchOnDisplay(), Task display area should keep no task: " + task);
                return false;
            }
        }

        return canLaunchOnDisplay(r, task.getTaskDisplayArea().getDisplayId());
    }