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

Commit ca903d38 authored by Craig Mautner's avatar Craig Mautner Committed by Android Git Automerger
Browse files

am 81e094d7: Merge "Move task to top in window manager." into klp-dev

* commit '81e094d7':
  Move task to top in window manager.
parents 29526cca 81e094d7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1709,6 +1709,7 @@ public final class ActivityStackSupervisor {
            TaskRecord sourceTask = sourceRecord.task;
            targetStack = sourceTask.stack;
            moveHomeStack(targetStack.isHomeStack());
            mWindowManager.moveTaskToTop(sourceTask.taskId);
            if (!addingToTask &&
                    (launchFlags&Intent.FLAG_ACTIVITY_CLEAR_TOP) != 0) {
                // In this case, we are adding the activity to an existing
@@ -1767,6 +1768,7 @@ public final class ActivityStackSupervisor {
            r.setTask(prev != null ? prev.task
                    : targetStack.createTaskRecord(getNextTaskId(), r.info, intent, true),
                    null, true);
            mWindowManager.moveTaskToTop(r.task.taskId);
            if (DEBUG_TASKS) Slog.v(TAG, "Starting new activity " + r
                    + " in new guessed " + r.task);
        }