Loading
Resolve letterbox on some close-to-square devices
To provide a new default behavior on close-to-square devices for app compatibility reason. The new default behavior will calculate configuration by decoupling status bar and display cutout from the screen sizes and orientation calculations. The corresponding value in the DisplayMetrics will also change. A device config flag, and a feature flag are used to control the configuration to only apply the change to certain devices. Furthur app compatibility policy may be needed and shall deliver in another patch. Bug: 291870756 Test: DisplayPolicyTests Test: Turn the flag values to true and check the behavior. Change-Id: I030daf3cf22c0e14794cea15ba8af15869bc62bd