From f88baf8b175653e9537058588eb652e252cf2b25 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Mon, 13 Feb 2017 16:11:40 -0800 Subject: [PATCH] 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 --- .../SystemUI/src/com/android/systemui/recents/RecentsImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/SystemUI/src/com/android/systemui/recents/RecentsImpl.java b/packages/SystemUI/src/com/android/systemui/recents/RecentsImpl.java index 55491b24e20d6..8de4e5837a6a6 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/RecentsImpl.java +++ b/packages/SystemUI/src/com/android/systemui/recents/RecentsImpl.java @@ -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); } }