services/core/java/com/android/server/wm/DisplayContent.java
100644 → 100755
+23
−22
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
In case device has 480 dpi and rotating the degrees then shortSizeDp value is less than 480 because of diaplay cutout.
So ScreenLayoutSize will not be properly set and there is difference in between expectedScreenLayout and actualScreenLayout.
In order to fix this issue, displayCutout should also be rotated while in calculating reduceConfigLayout.
Bug: b/147473991
Test: run cts-on-gsi -m CtsDpiTestCases -t android.dpi.cts.ConfigurationScreenLayyoutTest#testScreenLayout
Change-Id: Ie3d615e494cb3fd21f4388e969e5e637860b86ac
Signed-off-by:
Mark Hong <sungmin.h@samsung.com>