[14/N] Desks: Deactivate desk when last window is closed
When the last task closes, the desk is now deactivated to prevent future
app launches from launching in freeform.
Also fixes:
-One log that had desk/task ids inverted
-A missing early return when moving a running task to front, which was
also producing an incorrect log
Flag: com.android.window.flags.enable_multiple_desktops_backend
Bug: 394268248
Test: open fullscren app, enter desktop, close the window using X button
1) Verify window closes
2) Home launches
3) DesktopRepository dump shows
A) activeDeskId=null
B) closed window no longer inside the desk
4) Launching a new window from taskbar launches fullscreen, not
freeform in a tablet
Change-Id: I2b51e3abbea8650397000657c734049418607b97
Loading
Please register or sign in to comment