sweet: overlay: Fixed status bar glitch for apps that access internal resource dimen

Bring back old usage of status_bar_height, status_bar_height_portrait,
and status_bar_height_landscape by set the size containing cutout size.

Bug: 216782082
Test: make
Change-Id: I0bf97352bc07e45d7694f9512266f08e7139c103
This commit is contained in:
shawnlin 2022-04-01 11:46:52 +08:00 committed by basamaryan
parent 423d055677
commit ebe70fba27
No known key found for this signature in database
GPG Key ID: FEB194423719B3F6

View File

@ -20,7 +20,9 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Height of the status bar -->
<dimen name="status_bar_height">100.0px</dimen>
<dimen name="status_bar_height_default">100.0px</dimen>
<dimen name="status_bar_height_landscape">30dp</dimen>
<dimen name="status_bar_height_portrait">@dimen/status_bar_height_default</dimen>
<!-- Radius of the software rounded corners at the top of the display in its natural
orientation. If zero, the value of rounded_corner_radius is used. -->
<dimen name="rounded_corner_radius_top">102.0px</dimen>