Ensure recent documents are trimmed when relaunching.
With respect to recents trimming, documents excercise a a special code path, where the number of open documents is compared to a configured max documents. In fact though if we have mandated a trim (regardless of recents size) we don't care about this max documents number. Bug: 24717461 Change-Id: I2ffb4a037307d666ea0a7f31d75638b64b6eab8e
This commit is contained in:
@@ -465,7 +465,7 @@ class RecentTasks extends ArrayList<TaskRecord> {
|
||||
if (!sameActivity) {
|
||||
continue;
|
||||
}
|
||||
if (maxRecents > 0) {
|
||||
if (maxRecents > 0 && !doTrim) {
|
||||
--maxRecents;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user