Loading services/core/java/com/android/server/am/RecentTasks.java +5 −3 Original line number Diff line number Diff line Loading @@ -462,10 +462,12 @@ class RecentTasks extends ArrayList<TaskRecord> { final boolean sameActivity = task.realActivity != null && tr.realActivity != null && task.realActivity.equals(tr.realActivity); if (!sameActivity) { // If the document is open in another app or is not the same // document, we don't need to trim it. if (!sameActivity || !sameIntent) { continue; } if (maxRecents > 0 && !doTrim) { // Otherwise only trim if we are over our max recents for this task } else if (maxRecents > 0 && !doTrim) { --maxRecents; continue; } Loading Loading
services/core/java/com/android/server/am/RecentTasks.java +5 −3 Original line number Diff line number Diff line Loading @@ -462,10 +462,12 @@ class RecentTasks extends ArrayList<TaskRecord> { final boolean sameActivity = task.realActivity != null && tr.realActivity != null && task.realActivity.equals(tr.realActivity); if (!sameActivity) { // If the document is open in another app or is not the same // document, we don't need to trim it. if (!sameActivity || !sameIntent) { continue; } if (maxRecents > 0 && !doTrim) { // Otherwise only trim if we are over our max recents for this task } else if (maxRecents > 0 && !doTrim) { --maxRecents; continue; } Loading