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

Commit f88baf8b authored by Winson Chung's avatar Winson Chung
Browse files

Disable fetching of thumbnails when using snapshots.

- We don't keep the snapshots on the SysUI side so this is just a wasted
  call to load them (the rest of the metadata can still be prefetched
  though).

Test: Launch new tasks and ensure that we aren't fetching task snapshots
      without entering overview.

Change-Id: I1fe01a162f15e4f75b333e7e1bbe32d07e5d0b8d
parent 5b12734f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -130,6 +130,7 @@ public class RecentsImpl implements ActivityOptions.OnAnimationFinishedListener
                launchOpts.numVisibleTaskThumbnails = 2;
                launchOpts.onlyLoadForCache = true;
                launchOpts.onlyLoadPausedActivities = true;
                launchOpts.loadThumbnails = !ActivityManager.ENABLE_TASK_SNAPSHOTS;
                loader.loadTasks(mContext, plan, launchOpts);
            }
        }