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

am: 0aa4bb9e6b

Change-Id: I7224a8316f9d2a66196128f98c056de12e3b065c
This commit is contained in:
Winson
2016-06-13 17:36:53 +00:00
committed by android-build-merger

View File

@@ -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;
}