diff options
author | shawnlin <shawnlin@google.com> | 2022-04-01 11:54:39 +0800 |
---|---|---|
committer | Shawn Lin <shawnlin@google.com> | 2022-04-07 13:33:27 +0000 |
commit | ab0dbdbc8685773169f9f490df6069cea7b6c232 (patch) | |
tree | 8ad9c6ea6b0e798c8322d50804f497bb212d2bc6 | |
parent | c0d282f6b7903470166cbb501aefec85177ecb1f (diff) | |
download | raviole-ab0dbdbc8685773169f9f490df6069cea7b6c232.tar.gz |
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: I05142c120f05bdb5fa0543e61a6f50f46f6b0d82
-rw-r--r-- | oriole/overlay/frameworks/base/core/res/res/values/config.xml | 4 | ||||
-rw-r--r-- | raven/overlay/frameworks/base/core/res/res/values/config.xml | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/oriole/overlay/frameworks/base/core/res/res/values/config.xml b/oriole/overlay/frameworks/base/core/res/res/values/config.xml index 6eec9d03..574eed60 100644 --- a/oriole/overlay/frameworks/base/core/res/res/values/config.xml +++ b/oriole/overlay/frameworks/base/core/res/res/values/config.xml @@ -93,7 +93,9 @@ <!-- Height of the status bar. Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead. --> - <dimen name="status_bar_height_height">74px</dimen> + <dimen name="status_bar_height_height_default">74px</dimen> + <dimen name="status_bar_height_portrait">124px</dimen> + <dimen name="status_bar_height_landscape">74px</dimen> <!-- Adjustment for software rounded corners since corners aren't perfectly round. --> <dimen name="rounded_corner_radius_adjustment">5px</dimen> diff --git a/raven/overlay/frameworks/base/core/res/res/values/config.xml b/raven/overlay/frameworks/base/core/res/res/values/config.xml index a83a4e4d..8d422c3b 100644 --- a/raven/overlay/frameworks/base/core/res/res/values/config.xml +++ b/raven/overlay/frameworks/base/core/res/res/values/config.xml @@ -198,7 +198,9 @@ <!-- Height of the status bar. Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead. --> - <dimen name="status_bar_height">28dp</dimen> + <dimen name="status_bar_height_default">28dp</dimen> + <dimen name="status_bar_height_portrait">145px</dimen> + <dimen name="status_bar_height_landscape">28dp</dimen> <!-- the number of the max cached processes in the system. --> <integer name="config_customizedMaxCachedProcesses">64</integer> |