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

Commit 3b238675 authored by Winson's avatar Winson Committed by android-build-merger
Browse files

Prevent trimming recent tasks belonging in different stacks. am: 29dbc3cc

am: 0aa4bb9e

Change-Id: I7224a8316f9d2a66196128f98c056de12e3b065c
parents cda39b3a 0aa4bb9e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -621,6 +621,9 @@ class RecentTasks extends ArrayList<TaskRecord> {
        for (int i = 0; i < recentsCount; i++) {
            final TaskRecord tr = get(i);
            if (task != tr) {
                if (task.stack != tr.stack) {
                    continue;
                }
                if (task.userId != tr.userId) {
                    continue;
                }