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
Loading
Please register or sign in to comment