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

Commit bd420826 authored by Qijing Yao's avatar Qijing Yao Committed by Automerger Merge Worker
Browse files

Merge "Skip home activity in removeUnreachableHiddenTasks" into udc-dev am: 4d88a9e2

parents 803c4f1d 4d88a9e2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1512,7 +1512,7 @@ class RecentTasks {
        // callbacks here.
        final Task removedTask = mTasks.remove(removeIndex);
        if (removedTask != task) {
            if (removedTask.hasChild()) {
            if (removedTask.hasChild() && !removedTask.isActivityTypeHome()) {
                Slog.i(TAG, "Add " + removedTask + " to hidden list because adding " + task);
                // A non-empty task is replaced by a new task. Because the removed task is no longer
                // managed by the recent tasks list, add it to the hidden list to prevent the task