Skip adding tasks to the skip list if they won't be processed
Bug: 199523354 Test: atest TaskSnapshotControllerTest Change-Id: Ibb94dac74da8adbc0fedd3ca8be26b6b027417d1
This commit is contained in:
@@ -168,6 +168,9 @@ class TaskSnapshotController {
|
||||
*/
|
||||
@VisibleForTesting
|
||||
void addSkipClosingAppSnapshotTasks(ArraySet<Task> tasks) {
|
||||
if (shouldDisableSnapshots()) {
|
||||
return;
|
||||
}
|
||||
mSkipClosingAppSnapshotTasks.addAll(tasks);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user