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

Commit 928d8dc7 authored by Arthur Hung's avatar Arthur Hung
Browse files

Fix PIP can't touch when back to home

When findPositionForStack, consider only 2 stack exist.
One is pip and another is the stack itself.
for case that has always-on-top window exist,
max should be 0 instead of topChildPosition.

Bug: 69370884, 111581878
Test: go/wm-smoke
Test: atest DisplayContentTests
Test: atest WindowContainerTests
Change-Id: Ia36290e98263027231491d66dbe953eccb6c925c
parent 9d5e9731
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3467,7 +3467,7 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo
            } else {
            } else {
                // Other stacks need to be below the always-on-top stacks.
                // Other stacks need to be below the always-on-top stacks.
                maxPosition = belowAlwaysOnTopPosition !=
                maxPosition = belowAlwaysOnTopPosition !=
                        POSITION_BOTTOM ? belowAlwaysOnTopPosition : topChildPosition;
                        POSITION_BOTTOM ? belowAlwaysOnTopPosition : 0;
            }
            }


            int targetPosition = requestedPosition;
            int targetPosition = requestedPosition;