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

Commit a0303b71 authored by Kazuki Takise's avatar Kazuki Takise
Browse files

Implement display compat mode

This change covers the main implementation of display compat mode.

- The config changes that should be ignored for activity relaunch
 check are determined in
 AppCompatDisplayCompatModePolicy#getDisplayCompatModeConfigMask()
 and applied in ActivityRecord#shouldRelaunchLocked().

- The current spec is to ignore DENSITY, TOUCHSCREEN, and
 COLOR_MODE for all games, but may be adjusted in the future.

- This also changes when restart handle menu gets shown.
 Previously, it was shown for all apps after they move between
 displays, but according to user feedback and testing data, it
 turns out to be a bit controvertial, so with this change,
 the restart menu is enabled only for apps in display compat mode.

Flag: com.android.window.flags.enable_display_compat_mode
Bug: 410958151
Test: AppCompatDisplayCompatTests

Change-Id: Ie74861230f206dc8d2c34333e1bcf501d3a2ae0e
parent a88fe5ca
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