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

Skip to content
Commit bf679721 authored by Yunfan Chen's avatar Yunfan Chen
Browse files

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
parent 813da462
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment