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

Commit 0cd96a9e authored by Jorge Gil's avatar Jorge Gil
Browse files

Create window decors for leaf tasks & skip non-leafs

Fixes the logic that intended to filter out window decorations for
non-leaf tasks. Previously, non-root leafs were mistakenly skipped
instead of their parents, which went unnoticed until freeform tasks
were nested and the non-root leafs were missing the caption bar.

Bug: None
Test: nest freeform tasks, leaf tasks have window decorations.
Change-Id: Ia958fb43319d17a0e33e28497e52293954706416
parent 82e7167b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ public class FreeformTaskTransitionObserver implements Transitions.TransitionObs
                // This logic relies on 2 assumptions: 1 is that child tasks will be visited before
                // parents (due to how z-order works). 2 is that no non-tasks are interleaved
                // between tasks (hierarchically).
                taskParents.add(change.getContainer());
                taskParents.add(change.getParent());
            }
            if (taskParents.contains(change.getContainer())) {
                continue;