Loading quickstep/src/com/android/quickstep/TopTaskTracker.java +8 −4 Original line number Diff line number Diff line Loading @@ -206,12 +206,17 @@ public class TopTaskTracker extends ISplitScreenListener.Stub Collections.addAll(mOrderedTaskList, tasks); } // Strip the pinned task ArrayList<RunningTaskInfo> tasks = new ArrayList<>(mOrderedTaskList); tasks.removeIf(t -> t.taskId == mPinnedTaskId); // Strip the pinned task and recents task tasks.removeIf(t -> t.taskId == mPinnedTaskId || isRecentsTask(t)); return new CachedTaskInfo(tasks); } private static boolean isRecentsTask(RunningTaskInfo task) { return task != null && task.configuration.windowConfiguration .getActivityType() == ACTIVITY_TYPE_RECENTS; } /** * Class to provide information about a task which can be safely cached and do not change * during the lifecycle of the task. Loading Loading @@ -267,8 +272,7 @@ public class TopTaskTracker extends ISplitScreenListener.Stub } public boolean isRecentsTask() { return mTopTask != null && mTopTask.configuration.windowConfiguration .getActivityType() == ACTIVITY_TYPE_RECENTS; return TopTaskTracker.isRecentsTask(mTopTask); } /** Loading Loading
quickstep/src/com/android/quickstep/TopTaskTracker.java +8 −4 Original line number Diff line number Diff line Loading @@ -206,12 +206,17 @@ public class TopTaskTracker extends ISplitScreenListener.Stub Collections.addAll(mOrderedTaskList, tasks); } // Strip the pinned task ArrayList<RunningTaskInfo> tasks = new ArrayList<>(mOrderedTaskList); tasks.removeIf(t -> t.taskId == mPinnedTaskId); // Strip the pinned task and recents task tasks.removeIf(t -> t.taskId == mPinnedTaskId || isRecentsTask(t)); return new CachedTaskInfo(tasks); } private static boolean isRecentsTask(RunningTaskInfo task) { return task != null && task.configuration.windowConfiguration .getActivityType() == ACTIVITY_TYPE_RECENTS; } /** * Class to provide information about a task which can be safely cached and do not change * during the lifecycle of the task. Loading Loading @@ -267,8 +272,7 @@ public class TopTaskTracker extends ISplitScreenListener.Stub } public boolean isRecentsTask() { return mTopTask != null && mTopTask.configuration.windowConfiguration .getActivityType() == ACTIVITY_TYPE_RECENTS; return TopTaskTracker.isRecentsTask(mTopTask); } /** Loading