Also cancel TaskView collection Jobs when Overview is not on screen.
This prevents old scopes still being active when new TaskView state emissions are being sent to main. They were previously cancelled in time but still result in empty continuations occuring on main. Bug: 395294954 Flag: com.android.launcher3.enable_refactor_task_thumbnail Test: Manual - checking perfetto traces Change-Id: I539a6fde8c9315ceeac74c9bf622d1e2dca1403a
This commit is contained in:
@@ -2771,6 +2771,7 @@ public abstract class RecentsView<
|
||||
}
|
||||
if (enableRefactorTaskThumbnail()) {
|
||||
mRecentsViewModel.onReset();
|
||||
getTaskViews().forEach(TaskView::cancelJobs);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user