Hide the all apps UI when moving the last task from a display
Previously, moving the final task away from a display after launching it from the all apps UI unintentionally revealed the all apps UI again. This occurred because the UI remained active behind the desktop wallpaper. Removing the last task exposed it. For other scenarios where the launcher becomes visible, an Intent is sent to hide the all apps UI. However, this was disabled for moveToDisplay to prevent the source display from incorrectly gaining focus instead of the destination. This change removes that workaround, allowing the launcher to hide the all apps UI. Additionally, the wct.reorder(/* includingParents= */ true) call is moved after performDesktopExitCleanupIfNeeded (which sends the Intent). This ensures the destination display receives focus after the Intent changes the focus to the source. Bug: 410463040 Test: DesktopTasksControllerTest Test: run CD smoke tests Flag: com.android.window.flags.enable_display_focus_in_shell_transitions Flag: com.android.window.flags.enable_move_to_next_display_shortcut Change-Id: I2fa9bb284596cbc5a7b9d3cd8149df42cb37c3f0
Loading
Please register or sign in to comment