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

Commit efef374c authored by Wale Ogunwale's avatar Wale Ogunwale
Browse files

Don't move stack to front when creating a task for activity to be started

This causes foucs to move to the current activity in the stack which isn't
needed. Focus will be moved when the new activity is started in the stack.

Bug: 26381750
Change-Id: Ia76962dc5ba3ce336d2a4e074d14db06eebbe78c
parent d971a9d5
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1597,9 +1597,6 @@ class ActivityStarter {
    private void setTaskFromReuseOrCreateNewTask(TaskRecord taskToAffiliate) {
        mTargetStack = computeStackFocus(mStartActivity, true, mLaunchBounds, mLaunchFlags,
                mOptions);
        if (mDoResume) {
            mTargetStack.moveToFront("startingNewTask");
        }

        if (mReuseTask == null) {
            final TaskRecord task = mTargetStack.createTaskRecord(