Refresh runningTaskView's thumbnail after setting shouldShowScreenshot to true

- TaskThumbnailViewDeprecated won't redraw automatically unless refresh() is called

Fix: 346696742
Test: Invoke Omnient or Screenshot hardware button on live tile, verify running task switches to screenshot after overlay closes
Test: Select/Screenshot swithces to screenshot normally
Flag: EXEMPT BUG_FIX
Change-Id: I678fb155bd577afbacfde7233956ce6cfa5e569d
This commit is contained in:
Alex Chau
2024-08-21 21:37:40 +01:00
parent cafe06f63d
commit 1ca8471ae5
@@ -3003,6 +3003,10 @@ public abstract class RecentsView<CONTAINER_TYPE extends Context & RecentsViewCo
TaskView runningTaskView = getRunningTaskView();
if (runningTaskView != null) {
runningTaskView.setShouldShowScreenshot(mRunningTaskShowScreenshot);
if (!enableRefactorTaskThumbnail()) {
runningTaskView.getTaskContainers().forEach(
taskContainer -> taskContainer.getThumbnailViewDeprecated().refresh());
}
}
if (enableRefactorTaskThumbnail()) {
mRecentsViewModel.setRunningTaskShowScreenshot(showScreenshot);