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

Commit 49a59525 authored by Jerry Chang's avatar Jerry Chang
Browse files

Revert "Make sure tasks below home task is invisible while in split"

This reverts commit ead969a4.

Reason for revert: to verify if this brokes wm flicker presubmit

Fix: 187082054

Change-Id: I5cab74668ee985f23ceb2a28aa2c8b9bfa506311
parent ead969a4
Loading
Loading
Loading
Loading
+5 −15
Original line number Diff line number Diff line
@@ -4298,22 +4298,12 @@ class Task extends WindowContainer<WindowContainer> {
                // the screen are opaque.
                return TASK_VISIBILITY_INVISIBLE;
            }
            if (gotRootSplitScreenTask) {
                if (isAssistantType) {
            if (isAssistantType && gotRootSplitScreenTask) {
                // Assistant stack can't be visible behind split-screen. In addition to this not
                // making sense, it also works around an issue here we boost the z-order of the
                // assistant window surfaces in window manager whenever it is visible.
                return TASK_VISIBILITY_INVISIBLE;
            }
                if (other.isHomeOrRecentsRootTask()) {
                    // While in split mode, home task will be reparented to the secondary split and
                    // leaving tasks not supporting split below. Due to
                    // TaskDisplayArea#assignRootTaskOrdering always adjusts home surface layer to
                    // the bottom, this makes sure those tasks below home is invisible and won't
                    // occlude home task unexpectedly.
                    return TASK_VISIBILITY_INVISIBLE;
                }
            }
            if (other.mAdjacentTask != null) {
                if (adjacentTasks.contains(other.mAdjacentTask)) {
                    if (other.isTranslucent(starting)