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

Commit 5f2766f3 authored by Winson Chung's avatar Winson Chung
Browse files

Skip adding tasks to the skip list if they won't be processed

Bug: 199523354
Test: atest TaskSnapshotControllerTest
Change-Id: Ibb94dac74da8adbc0fedd3ca8be26b6b027417d1
parent e05c21bd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -168,6 +168,9 @@ class TaskSnapshotController {
     */
    @VisibleForTesting
    void addSkipClosingAppSnapshotTasks(ArraySet<Task> tasks) {
        if (shouldDisableSnapshots()) {
            return;
        }
        mSkipClosingAppSnapshotTasks.addAll(tasks);
    }