Prevent trimming recent tasks belonging in different stacks.
am: 29dbc3cc47
Change-Id: I5f87f2c865a0c5f5dad06bda895f5dd4a780d829
This commit is contained in:
@@ -621,6 +621,9 @@ class RecentTasks extends ArrayList<TaskRecord> {
|
|||||||
for (int i = 0; i < recentsCount; i++) {
|
for (int i = 0; i < recentsCount; i++) {
|
||||||
final TaskRecord tr = get(i);
|
final TaskRecord tr = get(i);
|
||||||
if (task != tr) {
|
if (task != tr) {
|
||||||
|
if (task.stack != tr.stack) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (task.userId != tr.userId) {
|
if (task.userId != tr.userId) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user