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

Commit f03de653 authored by Kai Peng's avatar Kai Peng
Browse files

TaskId=0 is also a valid task id, should not be passed to valueIfKeyNotFound.

When the user 0 exhausts all the MAX_TASK_IDS_PER_USER, the Task#0 is reused. But Task#0 may not be in the split pair.

Change-Id: Ie084deb579d7a3d0e1c1d823f9d1266af7243fdb
parent 84a49337
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -336,7 +336,7 @@ public class RecentTasksController implements TaskStackListenerCallback,
                continue;
            }

            final int pairedTaskId = mSplitTasks.get(taskInfo.taskId);
            final int pairedTaskId = mSplitTasks.get(taskInfo.taskId, INVALID_TASK_ID);
            if (pairedTaskId != INVALID_TASK_ID && rawMapping.contains(
                    pairedTaskId)) {
                final ActivityManager.RecentTaskInfo pairedTaskInfo = rawMapping.get(pairedTaskId);