Apply stable config compat override after other compats
Moving the size override after other compat overrides to make sure the letterbox overrides can be applied correctly. The fields overridden by letterbox doesn't need extra override regarding the stable configuration as all insets are already in consideration. Besides, check shouldCreateCompatDisplayInsets() before applying the override to avoid inconsistency when the compat display insets is not yet created. This is a partial cherry-pick contains the critical part of the change. Bug: 332468995 Bug: 340970172 Bug: 336687188 Test: See reproduce steps in b/332468995 Test: CtsWindowManagerDeviceWindow:WindowMetricsActivityTests Test: CtsWindowManagerSdk25TestCases:AspectRatioSdk25Tests Test: v2/android-crystalball-eng/health/microbench/startup/hscapps/compile-speed-profile/open-maps Merged-In: Iee7ae3ea7e483e6f80fa6ef4659627d620653081 Change-Id: If2e2e7f0eb504f2468f262b195f3a1cd28820423
Loading
Please register or sign in to comment