Merge "Fixes two bugs with findLastActiveTasksAndRunCallback()" into main

This commit is contained in:
Jeremy Sim
2023-12-19 02:08:54 +00:00
committed by Android (Google) Code Review
6 changed files with 30 additions and 27 deletions
@@ -1144,7 +1144,7 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
componentKeys,
findExactPairMatch,
foundTasks -> {
@Nullable Task foundTask = foundTasks.get(0);
@Nullable Task foundTask = foundTasks[0];
if (foundTask != null) {
TaskView foundTaskView = recents.getTaskViewByTaskId(foundTask.key.id);
if (foundTaskView != null