diff --git a/services/core/java/com/android/server/wm/Task.java b/services/core/java/com/android/server/wm/Task.java index 827634f72ca46..ac9c28935211a 100644 --- a/services/core/java/com/android/server/wm/Task.java +++ b/services/core/java/com/android/server/wm/Task.java @@ -5943,11 +5943,7 @@ class Task extends WindowContainer { final TaskDisplayArea taskDisplayArea = getDisplayArea(); // If the top activity is the resumed one, nothing to do. - // For devices that are not in fullscreen mode (e.g. freeform windows), it's possible - // we still want to proceed if the visibility of other windows have changed (e.g. bringing - // a fullscreen window forward to cover another freeform activity.) if (mResumedActivity == next && next.isState(RESUMED) - && taskDisplayArea.getWindowingMode() != WINDOWING_MODE_FREEFORM && taskDisplayArea.allResumedActivitiesComplete()) { // The activity may be waiting for stop, but that is no longer appropriate for it. mStackSupervisor.mStoppingActivities.remove(next);