Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ca8471a authored by Alex Chau's avatar Alex Chau
Browse files

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
parent cafe06f6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);