Loading libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopTasksController.kt +5 −1 Original line number Diff line number Diff line Loading @@ -699,8 +699,12 @@ class DesktopTasksController( /** Start a disconnect transition directly in Shell. */ fun disconnectDisplay(disconnectedDisplayId: Int) { logD("disconnectDisplay: disconnectedDisplayId=$disconnectedDisplayId") val disconnectReparentDisplay = var disconnectReparentDisplay = UserManager.get(userProfileContexts.userContext).mainDisplayIdAssignedToUser // If user has no default display configured, fall back to DEFAULT_DISPLAY if (disconnectReparentDisplay == INVALID_DISPLAY) { disconnectReparentDisplay = DEFAULT_DISPLAY } val wct = WindowContainerTransaction() val runOnTransitStart = addOnDisplayDisconnectChanges(wct, disconnectedDisplayId, disconnectReparentDisplay) Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopTasksController.kt +5 −1 Original line number Diff line number Diff line Loading @@ -699,8 +699,12 @@ class DesktopTasksController( /** Start a disconnect transition directly in Shell. */ fun disconnectDisplay(disconnectedDisplayId: Int) { logD("disconnectDisplay: disconnectedDisplayId=$disconnectedDisplayId") val disconnectReparentDisplay = var disconnectReparentDisplay = UserManager.get(userProfileContexts.userContext).mainDisplayIdAssignedToUser // If user has no default display configured, fall back to DEFAULT_DISPLAY if (disconnectReparentDisplay == INVALID_DISPLAY) { disconnectReparentDisplay = DEFAULT_DISPLAY } val wct = WindowContainerTransaction() val runOnTransitStart = addOnDisplayDisconnectChanges(wct, disconnectedDisplayId, disconnectReparentDisplay) Loading