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
This commit is contained in:
Jorge Gil
2022-11-28 21:56:04 +00:00
parent 82e7167b9c
commit 0cd96a9eed

View File

@@ -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;