Merge "Refresh runningTaskView's thumbnail after setting shouldShowScreenshot to true" into main

This commit is contained in:
Alex Chau
2024-08-22 15:17:35 +00:00
committed by Android (Google) Code Review
@@ -3035,6 +3035,10 @@ public abstract class RecentsView<
TaskView runningTaskView = getRunningTaskView();
if (runningTaskView != null) {
runningTaskView.setShouldShowScreenshot(mRunningTaskShowScreenshot);
if (!enableRefactorTaskThumbnail()) {
runningTaskView.getTaskContainers().forEach(
taskContainer -> taskContainer.getThumbnailViewDeprecated().refresh());
}
}
if (enableRefactorTaskThumbnail()) {
mRecentsViewModel.setRunningTaskShowScreenshot(showScreenshot);