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

Commit d213beae authored by Craig Mautner's avatar Craig Mautner
Browse files

Don't bring stack forward when moving tasks.

Change-Id: I222eda9e3ea62119c8948a99a63de55b13ca69f4
parent 636f119e
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -2857,8 +2857,6 @@ final class ActivityStack {
            return;
        }

        mStackSupervisor.moveHomeStack(isHomeStack());

        // Shift all activities with this task up to the top
        // of the stack, keeping them in the same internal order.
        mTaskHistory.remove(tr);
+0 −4
Original line number Diff line number Diff line
@@ -1911,10 +1911,6 @@ public final class ActivityStackSupervisor {
        }
        removeTask(task);
        stack.addTask(task, toTop);
        if (toTop) {
            moveHomeStack(stack.isHomeStack());
            setFocusedStack(task.getTopActivity());
        }
        mWindowManager.addTask(taskId, stackId, toTop);
        resumeTopActivitiesLocked();
    }
+0 −3
Original line number Diff line number Diff line
@@ -4855,9 +4855,6 @@ public class WindowManagerService extends IWindowManager.Stub
            TaskStack stack = mStackIdToStack.get(stackId);
            stack.addTask(task, toTop);
            final DisplayContent displayContent = stack.getDisplayContent();
            if (toTop) {
                displayContent.moveHomeStackBox(stack.isHomeStack());
            }
            displayContent.layoutNeeded = true;
            performLayoutAndPlaceSurfacesLocked();
        }