summaryrefslogtreecommitdiff
path: root/packages/Shell/src
diff options
context:
space:
mode:
author Gustav Sennton <gsennton@google.com> 2024-04-02 16:10:29 +0000
committer Gustav Sennton <gsennton@google.com> 2024-04-19 16:34:26 +0000
commit1096b70b427df48f0db5458083ad7050c7b156dc (patch)
tree90f69ea432f3cefde537c5b3bd0330d97d8a994b /packages/Shell/src
parentb43e44ee9a7a69abbe22d8568c6f702127b0a241 (diff)
Minimize a Task whenever we reach the Desktop Task limit
- Introduce DesktopTasksLimiter to limit the number of visible Desktop Tasks - Keep track of minimized Desktop Tasks in DesktopModeTaskRepository - Call into DesktopTasksLimiter from DesktopTasksController whenever we handle a transition that might cause us to hit the task limit. - to minimize a Task we reorder it to the bottom of the Desktop Tasks, placing it behind the Home Task. We mark the task as minimized in DesktopModeTaskRepository later when the transition is ready. - Add a SystemProperty 'persist.wm.debug.desktop_max_task_limit' to control the maximum Task limit. To update the limit to X tasks, run: 'adb shell setprop persist.wm.debug.desktop_max_task_limit X' Bug: 332503075, 316115519 Test: unit tests Change-Id: Ia34b67b4628d50e99347d9680e5a869ca666eaa3
Diffstat (limited to 'packages/Shell/src')
0 files changed, 0 insertions, 0 deletions