Suhua Lei a6bd2abc12 Handle AddDeskButton's visibility across reboot
Currently, if we create 4 (upper limit) non-empty desks, reboot, and
enter Overview, the addDesktopButton shows up when it actully shouldn't.

This change fixes this edge case by checking if we can create a desk or
not when inflating addDesktopButton and update its visibility
accordingly.

Bug: 416052493
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Test: create desks and reboot
Change-Id: I7142c3aeb88cc1f06b99ddef753ea20c63b17297
2025-05-08 17:50:52 +00:00
2025-05-01 16:00:04 -07:00
2019-11-25 20:24:07 +09:00
2024-03-22 15:45:32 -07:00
S
Description
No description provided
658 MiB
Languages
Java 57.2%
Kotlin 42.4%
AIDL 0.3%