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

This commit is contained in:
Jeremy Sim authored and Android (Google) Code Review committed 2023-12-19 02:08:54 +00:00
commit 34aa1c5366
6 files changed
+30 -27

No files matched your search

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