Get top task per display from TopTaskTracker

Test: locally tested on tablet
Flag: com.android.launcher3.enable_overview_on_connected_displays
Bug: 402362465
Change-Id: I0eb66c5c931fe30ce954657ee1b0eb2d87e58943
This commit is contained in:
Will Osborn committed 2025-03-20 16:40:28 +00:00
1 parent aa53bd3392
commit 7e3c0c2249
16 files changed
+77 -42

No files matched your search

@@ -134,7 +134,8 @@ public class FallbackTaskbarUIController
private boolean isIn3pHomeOrRecents() {
TopTaskTracker.CachedTaskInfo topTask = TopTaskTracker.INSTANCE
.get(mControllers.taskbarActivityContext).getCachedTopTask(true);
.get(mControllers.taskbarActivityContext).getCachedTopTask(true,
mRecentsContainer.asContext().getDisplayId());
return topTask.isHomeTask() || topTask.isRecentsTask();
}