aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshawnlin <shawnlin@google.com>2021-09-17 20:15:34 +0800
committerLuK1337 <priv.luk@gmail.com>2022-03-31 18:23:17 +0200
commitdc918b704d7c59ed3530d2c6305a00ea1526ea97 (patch)
tree4a109a9b1de1df089f8d5fe0852f76af5ddee86e
parenta8b71eeb3169bfd155ec31f8fe1fdc9ea336f6e7 (diff)
enchilada: Remove resource overlays for system bar heights
With the new added APIs, we don't need to overlay status_bar_height that contains cutout size and quick_qs_offset_height anymore. Bug: 186604541 Test: make Change-Id: I36d869866ed03d3996b7b0d8cc6d3f6bb6ab624d
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml7
-rw-r--r--overlay/frameworks/base/packages/overlays/NoCutoutOverlay/res/values/config.xml5
2 files changed, 6 insertions, 6 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index ed5d006..a863605 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -383,9 +383,10 @@
Z
</string>
- <!-- Height of the status bar -->
- <dimen name="status_bar_height_portrait">80px</dimen>
- <dimen name="status_bar_height_landscape">80px</dimen>
+ <!-- Height of the status bar.
+ Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
+ -->
+ <dimen name="status_bar_height">28dp</dimen>
<!-- Is the notification LED intrusive? Used to decide if there should be a disable option -->
<bool name="config_intrusiveNotificationLed">true</bool>
diff --git a/overlay/frameworks/base/packages/overlays/NoCutoutOverlay/res/values/config.xml b/overlay/frameworks/base/packages/overlays/NoCutoutOverlay/res/values/config.xml
index a0a7ee9..9ff30f1 100644
--- a/overlay/frameworks/base/packages/overlays/NoCutoutOverlay/res/values/config.xml
+++ b/overlay/frameworks/base/packages/overlays/NoCutoutOverlay/res/values/config.xml
@@ -25,9 +25,8 @@
by shrinking the display such that it does not overlap the cutout area. -->
<bool name="config_maskMainBuiltInDisplayCutout">true</bool>
- <!-- Height of the status bar -->
- <dimen name="status_bar_height_portrait">28dp</dimen>
- <dimen name="status_bar_height_landscape">28dp</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">60px</dimen>
</resources>