Merge "Skip adding tasks to the skip list if they won't be processed" into sc-v2-dev am: 4593cd68bd

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15845119

Change-Id: Ic8ff35924d09ada455c337bd74fc78cc360952c8
This commit is contained in:
Winson Chung
2021-09-22 18:48:44 +00:00
committed by Automerger Merge Worker

View File

@@ -168,6 +168,9 @@ class TaskSnapshotController {
*/
@VisibleForTesting
void addSkipClosingAppSnapshotTasks(ArraySet<Task> tasks) {
if (shouldDisableSnapshots()) {
return;
}
mSkipClosingAppSnapshotTasks.addAll(tasks);
}