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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user