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

Commit 672b0196 authored by Hongwei Wang's avatar Hongwei Wang Committed by Android (Google) Code Review
Browse files

Merge "Revert "Do not dismiss split while exit PiP to full-screen"" into main

parents 01de9dad a0840413
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -695,6 +695,16 @@ public class PipTaskOrganizer implements ShellTaskOrganizer.TaskListener,
                return;
            }

            if (mSplitScreenOptional.isPresent()) {
                // If pip activity will reparent to origin task case and if the origin task still
                // under split root, apply exit split transaction to make it expand to fullscreen.
                SplitScreenController split = mSplitScreenOptional.get();
                if (split.isTaskInSplitScreen(mTaskInfo.lastParentTaskIdBeforePip)) {
                    split.prepareExitSplitScreen(wct, split.getStageOfTask(
                            mTaskInfo.lastParentTaskIdBeforePip),
                            SplitScreenController.EXIT_REASON_APP_FINISHED);
                }
            }
            mPipTransitionController.startExitTransition(TRANSIT_EXIT_PIP, wct, destinationBounds);
            return;
        }