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

Commit d26e079d authored by Robert Carr's avatar Robert Carr
Browse files

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
parent 446433da
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -465,7 +465,7 @@ class RecentTasks extends ArrayList<TaskRecord> {
                    if (!sameActivity) {
                        continue;
                    }
                    if (maxRecents > 0) {
                    if (maxRecents > 0 && !doTrim) {
                        --maxRecents;
                        continue;
                    }