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

Commit 34e1d114 authored by Pragya Bajoria's avatar Pragya Bajoria Committed by Automerger Merge Worker
Browse files

Merge "Crash during Task switch" into main am: 441f3367 am: 12af62ac

parents 02a332ae 12af62ac
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -536,9 +536,12 @@ public class TaskViewTaskController implements ShellTaskOrganizer.TaskListener {
            }
            return;
        }
        // Cache it to avoid NPE and make sure to remove it from recents history.
        // mTaskToken can be cleared in onTaskVanished() when the task is removed.
        final WindowContainerToken taskToken = mTaskToken;
        mShellExecutor.execute(() -> {
            WindowContainerTransaction wct = new WindowContainerTransaction();
            wct.removeTask(mTaskToken);
            wct.removeTask(taskToken);
            mTaskViewTransitions.closeTaskView(wct, this);
        });
    }