Fix stage split for connected display

Bug: 397942185
Test: local + presubmit
Flag: com.android.launcher3.enable_overview_on_connected_displays

Change-Id: I03207b808abc14a30a1de7b7030216325c7762e7
This commit is contained in:
Will Osborn
2025-04-24 13:37:15 +00:00
parent 05e4134b73
commit bc183f7154
@@ -322,13 +322,12 @@ public class TouchInteractionService extends Service {
@BinderThread
@Override
public void enterStageSplitFromRunningApp(boolean leftOrTop) {
public void enterStageSplitFromRunningApp(int displayId, boolean leftOrTop) {
executeForTouchInteractionService(tis -> {
// TODO (b/397942185): support external displays
RecentsViewContainer container = tis.mOverviewComponentObserver
.getContainerInterface(DEFAULT_DISPLAY).getCreatedContainer();
.getContainerInterface(displayId).getCreatedContainer();
if (container != null) {
container.enterStageSplitFromRunningApp(leftOrTop, DEFAULT_DISPLAY);
container.enterStageSplitFromRunningApp(leftOrTop, displayId);
}
});
}