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

Commit 609d12df authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fixing issue with wrong stack being brought forward."

parents c7bc9df6 105ae5fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2770,7 +2770,7 @@ public class ActivityStackSupervisor extends ConfigurationContainer implements D
                // while pausing because that changes the focused stack and may prevent the new
                // starting activity from resuming.
                if (moveHomeStackToFront && task.getTaskToReturnTo() == HOME_ACTIVITY_TYPE
                        && !r.supportsPictureInPictureWhilePausing) {
                        && (r.state == RESUMED || !r.supportsPictureInPictureWhilePausing)) {
                    // Move the home stack forward if the task we just moved to the pinned stack
                    // was launched from home so home should be visible behind it.
                    moveHomeStackToFront(reason);