Comet: define display cutout side overrides for all rotations

This is necessary to define all four values, otherwise, the different
source rotation may cause different behavior on the same target rotation
if the target rotation doesn't have a defined side override.

Bug: 302387383
Test: rotate from 270 to 0 and see no black bar underneath status bar.
Change-Id: I629a9cca6b239f8095775c73448a7176089dbd10
This commit is contained in:
Yunfan Chen 2024-01-25 14:26:50 +09:00
parent 623f06d21f
commit b20ae66cec

View file

@ -292,10 +292,12 @@
@right
</string>
<string-array name="config_mainBuiltInDisplayCutoutSideOverride" translatable="false">
<item>90,top</item>
<item>270,bottom</item>
</string-array>
<integer-array name="config_mainBuiltInDisplayCutoutSideOverride" translatable="false">
<item>1</item> <!-- Top -->
<item>1</item> <!-- Top -->
<item>3</item> <!-- Bottom -->
<item>3</item> <!-- Bottom -->
</integer-array>
<string translatable="false" name="config_secondaryBuiltInDisplayCutout">
m 581.5,86 a 41.5,41.5 0 0 0 -83,0 41.5,41.5 0 0 0 83,0 z