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
2025-03-18 14:07:33 +00:00
parent aa53bd3392
commit 7e3c0c2249
16 changed files with 77 additions and 42 deletions
@@ -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();
}