lemonadep: 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 Michael Bestas
parent 14aed49c1f
commit 6321ae0241
No known key found for this signature in database
GPG Key ID: CC95044519BE6669
2 changed files with 3 additions and 14 deletions

View File

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- Height of the status bar.
Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
-->
<dimen name="status_bar_height">28dp</dimen>
</resources>

View File

@ -8,7 +8,9 @@
<!-- Height of the status bar.
Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
-->
<dimen name="status_bar_height">152px</dimen>
<dimen name="status_bar_height_default">28dp</dimen>
<dimen name="status_bar_height_portrait">152px</dimen>
<dimen name="status_bar_height_landscape">28dp</dimen>
<!-- Default radius of the software rounded corners. -->
<dimen name="rounded_corner_radius">8dp</dimen>