diff options
| author | 2025-03-04 13:24:33 +0900 | |
|---|---|---|
| committer | 2025-03-17 17:24:27 -0700 | |
| commit | 187d2a313c6f07e67778260103dced0189f3eb12 (patch) | |
| tree | 204c9b2a0cfccf3911bf0706716ad33e1b3cf6c0 /libs/androidfw/BackupData.cpp | |
| parent | 8105f876410c9554bc2e7c193ce40ebdded2d2ac (diff) | |
Add "Optimize View" option to Handle Menu
This is the new app-compat UI element to give users the option
to restart apps when they move between displays and get some
app-specific UI issues. (See the mock attached in the bug for
more details.)
The visibility of the menu is controlled by
AppCompatTaskInfo.isRestartMenuEnabledForDisplayMove, which
becomes true when an app moves between displays, and reset to
false when an app actually gets restarted.
When the button is pressed, it invokes
CompatUIHandler#sendCompatUIRequest() and the restart dialog gets
shown.
Flag: com.android.window.flags.enable_restart_menu_for_connected_displays
Bug: 400575337
Test: DesktopModeWindowDecorationTests
Change-Id: I398b01fe044ccdc960603a0b9391eb90e16575b3
Diffstat (limited to 'libs/androidfw/BackupData.cpp')
0 files changed, 0 insertions, 0 deletions