From 7c40291b0a105a8dfefda76c4ad8c42bf04a4f55 Mon Sep 17 00:00:00 2001 From: Winson Date: Tue, 10 May 2016 13:59:36 -0700 Subject: [PATCH] Reducing the number of recent tasks we keep. - This should decrease the time it takes to fetch the recent task list, and also reduce the number of tasks we store on-disk. - Since a user can still open a fair number of tasks within the time-window, and this list includes tasks that are excluded from the UI, we are just reducing it to about half for the time being. Bug: 28318359 Change-Id: Ie21b3d3d09a567007015fbbecaf914123c71cc06 --- core/java/android/app/ActivityManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/app/ActivityManager.java b/core/java/android/app/ActivityManager.java index ff8cf66770eb6..8a92b5477caf0 100644 --- a/core/java/android/app/ActivityManager.java +++ b/core/java/android/app/ActivityManager.java @@ -901,7 +901,7 @@ public class ActivityManager { */ static public int getMaxRecentTasksStatic() { if (gMaxRecentTasks < 0) { - return gMaxRecentTasks = isLowRamDeviceStatic() ? 50 : 100; + return gMaxRecentTasks = isLowRamDeviceStatic() ? 36 : 48; } return gMaxRecentTasks; }