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

Commit 65574f84 authored by Alex Chau's avatar Alex Chau
Browse files

Sets taskOverlayFactory to TaskThumbnailViewDeprecated even when not binding

Bug: 339787593
Test: Manual
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Change-Id: I672bf7e5c0fd578974fca16272557f2ef2f218ee
parent 33967ebc
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -201,6 +201,17 @@ public class TaskThumbnailViewDeprecated extends View implements ViewPool.Reusab
        updateSplashView(mTask.icon);
    }

    /**
     * Sets TaskOverlayFactory without binding a task.
     *
     * @deprecated Should only be used when using new
     * {@link com.android.quickstep.task.thumbnail.TaskThumbnailView}.
     */
    @Deprecated
    public void setTaskOverlayFactory(TaskOverlayFactory taskOverlayFactory) {
        mTaskOverlayFactory = taskOverlayFactory;
    }

    /**
     * Updates the thumbnail.
     *
+1 −0
Original line number Diff line number Diff line
@@ -630,6 +630,7 @@ constructor(
                )
            )
        if (enableRefactorTaskThumbnail()) {
            taskThumbnailViewDeprecated.setTaskOverlayFactory(taskOverlayFactory)
            bindTaskThumbnailView()
        } else {
            taskThumbnailViewDeprecated.bind(task, taskOverlayFactory)