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

Commit 00212168 authored by Ben Lin's avatar Ben Lin Committed by Android (Google) Code Review
Browse files

Merge "When dismissing PiP, don't set bounds to null if setting to FREEFORM."

parents 0b66db6c 07af477d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1446,7 +1446,9 @@ public class ActivityStackSupervisor implements RecentTasks.Callbacks {
        mService.deferWindowLayout();
        try {
            stack.setWindowingMode(WINDOWING_MODE_UNDEFINED);
            if (stack.getWindowingMode() != WINDOWING_MODE_FREEFORM) {
                stack.setBounds(null);
            }
            toDisplay.getDefaultTaskDisplayArea().positionTaskBehindHome(stack);

            // Follow on the workaround: activities are kept force hidden till the new windowing