Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1d182b8 authored by Jorge Gil's avatar Jorge Gil
Browse files

Desks: Incompatible Tasks (2/2) - Adjust launch WCT for desks

Makes a couple of adjustments to the WCT in
handleIncompatibleTaskLaunch() when multiple-desks is enabled:
1) to-transparent-fullscren task tracking isn't needed - instead, when
   one of these tasks launches, the desk is kept in an active state.
2) Even if the task is already fullscreen, ensure
   addMoveToFullscreenChanges runs, so the task is reparented to the TDA
   and the desktop state is cleaned up
3) Set |forceExitDesktop| to true|false based on task transparency:
   opaque tasks always force-exit the desktop, transparent tasks always
   keep the desktop active.

Flag: com.android.window.flags.enable_multiple_desktops_backend
Bug: 398295550
Test: while in desktop, launch incompatible tasks and check opaque ones
go fullscreen and exit the desktop, while transparent ones go fullscreen
but keep the desktop active.

Change-Id: I720a6477511fcafa8e914f5703d57e43e1f1c4e8
parent b0ed62e4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment