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

Commit 29019222 authored by Uwais Ashraf's avatar Uwais Ashraf
Browse files

Fixes unflagged usage of deprecated TTV

Fix: 369572928
Test: presubmits
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Change-Id: Iffd983d9c1b278a456570b1c312981a1ea2ca728
parent d3e1d7ba
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -149,8 +149,7 @@ public final class TaskOverlayFactoryGo extends TaskOverlayFactory {
            // Disable Overview Actions for Work Profile apps
            boolean isManagedProfileTask =
                    UserManager.get(mApplicationContext).isManagedProfile(task.key.userId);
            boolean isAllowedByPolicy = mTaskContainer.getThumbnailViewDeprecated().isRealSnapshot()
                    && !isManagedProfileTask;
            boolean isAllowedByPolicy = isRealSnapshot() && !isManagedProfileTask;
            getActionsView().setCallbacks(new OverlayUICallbacksGoImpl(isAllowedByPolicy, task));
            mTaskPackageName = task.key.getPackageName();
            mSharedPreferences = LauncherPrefs.getPrefs(mApplicationContext);