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

Commit 41877c0c authored by Kazuki Takise's avatar Kazuki Takise
Browse files

WMCore-side infra for showing restart menu

This change introduces a new class AppCompatDisplayCompatModePolicy
, which encapsulates all our compat logic related to CD (WM part).
Currently, the class only owns the policy as to when the restart
menu should be shown. It targets all apps for now, and if they are
moved to a different display, the restart menu gets enabled, and
once they are restarted, it becomes invisible. This policy is
subject to change as we're finalizing the UX of the feature.

This policy is routed to WMShell via AppCompatTaskInfo and
accessible as isRestartMenuEnabledForDisplayMove() just like other
information on app-compat.

Flag: com.android.window.flags.enable_restart_menu_for_connected_displays
Bug: 400546294
Test: WmTests:DisplayCompatTests
Change-Id: I952c0dee9802a9288af170ff62d8818aec662aec
parent 0f223887
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