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

Commit 056ea32d authored by Vinit Nayak's avatar Vinit Nayak
Browse files

Prevent dismissing split when pausing tasks trampolines to new activity

* This was originally done in ag/23352436 for the case of swiping up
split to home and imemidately opening up one of the split tasks in
fullscreen. Removing this code doesn't cause that to repro anymore
* This is a partial fix, more to be done with b/395146421

Test: Bug doesn't repro, old bug doesn't repro for which this
code was added
Fix: 339769621
Flag: EXEMPT bugfix

Change-Id: I0d7f8a7070bcd7ed3ecf5350299f1914e7799247
parent 27bcbd51
Loading
Loading
Loading
Loading
+0 −8
Original line number Original line Diff line number Diff line
@@ -2845,14 +2845,6 @@ public class StageCoordinator implements SplitLayout.SplitLayoutHandler,
                    prepareExitSplitScreen(dismissTop, out, EXIT_REASON_APP_FINISHED);
                    prepareExitSplitScreen(dismissTop, out, EXIT_REASON_APP_FINISHED);
                    mSplitTransitions.setDismissTransition(transition, dismissTop,
                    mSplitTransitions.setDismissTransition(transition, dismissTop,
                            EXIT_REASON_APP_FINISHED);
                            EXIT_REASON_APP_FINISHED);
                } else if (isOpening && !mPausingTasks.isEmpty()) {
                    // One of the splitting task is opening while animating the split pair in
                    // recents, which means to dismiss the split pair to this task.
                    int dismissTop = getStageType(stage) == STAGE_TYPE_MAIN
                            ? STAGE_TYPE_MAIN : STAGE_TYPE_SIDE;
                    prepareExitSplitScreen(dismissTop, out, EXIT_REASON_APP_FINISHED);
                    mSplitTransitions.setDismissTransition(transition, dismissTop,
                            EXIT_REASON_APP_FINISHED);
                } else if (!isSplitScreenVisible() && isOpening) {
                } else if (!isSplitScreenVisible() && isOpening) {
                    // If split is running in the background and the trigger task is appearing into
                    // If split is running in the background and the trigger task is appearing into
                    // split, prepare to enter split screen.
                    // split, prepare to enter split screen.