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

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

Merge "Fixes recents from expanding full size when an app is docked"

parents 84f285c7 299a01fc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4599,13 +4599,13 @@ public class ActivityStackSupervisor extends ConfigurationContainer
            // Defer updating the stack in which recents is until the app transition is done, to
            // not run into issues where we still need to draw the task in recents but the
            // docked stack is already created.
            deferUpdateBounds(RECENTS_STACK_ID);
            deferUpdateBounds(HOME_STACK_ID);
            mWindowManager.prepareAppTransition(TRANSIT_DOCK_TASK_FROM_RECENTS, false);
        }

        task = anyTaskForIdLocked(taskId, RESTORE_FROM_RECENTS, launchStackId);
        if (task == null) {
            continueUpdateBounds(RECENTS_STACK_ID);
            continueUpdateBounds(HOME_STACK_ID);
            mWindowManager.executeAppTransition();
            throw new IllegalArgumentException(
                    "startActivityFromRecentsInner: Task " + taskId + " not found.");