diff options
author | shawnlin <shawnlin@google.com> | 2022-04-01 11:56:09 +0800 |
---|---|---|
committer | shawnlin <shawnlin@google.com> | 2022-04-01 11:56:09 +0800 |
commit | 01eeecb131195767a4f0df02002067ff447226b9 (patch) | |
tree | 43a34875fac4147a0fce7f242a405f2b0abca7aa | |
parent | 1e2a1e4c7ddbd25d53004af06737405a13b944a1 (diff) | |
download | redfin-01eeecb131195767a4f0df02002067ff447226b9.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: I44a5722d3dccf9c47916eb636def6a505eea480f
-rwxr-xr-x | redfin/overlay/frameworks/base/core/res/res/values/config.xml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/redfin/overlay/frameworks/base/core/res/res/values/config.xml b/redfin/overlay/frameworks/base/core/res/res/values/config.xml index a2ac121..68b13d7 100755 --- a/redfin/overlay/frameworks/base/core/res/res/values/config.xml +++ b/redfin/overlay/frameworks/base/core/res/res/values/config.xml @@ -237,7 +237,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> <!-- Not allow to switch to higher refresh rate when display brightness setting is equal or less than this value --> |