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

Commit 14cfbb49 authored by Winson Chung's avatar Winson Chung
Browse files

Temporarily disable active task trimming.

Bug: 68045330
Bug: 34270611
Test: runtest --path
frameworks/base/services/tests/servicestests/src/com/android/server/am/RecentTasksTest.java

Change-Id: I8c70d4f97867aca158de158d32be4b5fda1b3479
parent 95111379
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -3002,12 +3002,7 @@ public class ActivityStackSupervisor extends ConfigurationContainer implements D

    @Override
    public void onRecentTaskRemoved(TaskRecord task, boolean wasTrimmed) {
        if (wasTrimmed) {
            // Task was trimmed from the recent tasks list -- remove the active task record as well
            // since the user won't really be able to go back to it
            removeTaskByIdLocked(task.taskId, false /* killProcess */,
                    false /* removeFromRecents */);
        }
        // TODO: Trim active task once b/68045330 is fixed
        task.removedFromRecents();
    }