berlin: Fix status bar height for certain apps on 12L
* 12L introduced new API to fetch status bar height based on cutout, to handle multi-display devices. However, some apps directly read the height from overlay so the layout is broken for them. * Since our device is not a multi-display one, set the expected height in overlay directly as the old way to make these apps look good. * Reduce status bar height to exactly match the cutout height. Change-Id: I38fae2cdd20b947998766b35920d28bebcf547cf
This commit is contained in:
parent
02bea4f8a3
commit
49a98f304d
@ -0,0 +1,11 @@
|
||||
<?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 in landscape. The height should be
|
||||
Max((status bar content height + waterfall top size), top cutout size) -->
|
||||
<dimen name="status_bar_height">24dp</dimen>
|
||||
</resources>
|
@ -9,14 +9,7 @@
|
||||
|
||||
<!-- Height of the status bar in portrait. The height should be
|
||||
Max((status bar content height + waterfall top size), top cutout size) -->
|
||||
<dimen name="status_bar_height_portrait">90px</dimen>
|
||||
|
||||
<!-- Height of the status bar in landscape. The height should be
|
||||
Max((status bar content height + waterfall top size), top cutout size) -->
|
||||
<dimen name="status_bar_height_landscape">24dp</dimen>
|
||||
|
||||
<!-- Height of area above QQS where battery/time go -->
|
||||
<dimen name="quick_qs_offset_height">@dimen/status_bar_height_portrait</dimen>
|
||||
<dimen name="status_bar_height">90px</dimen>
|
||||
|
||||
<dimen name="status_bar_padding_top_portrait">10.0px</dimen>
|
||||
</resources>
|
||||
|
@ -13,7 +13,7 @@
|
||||
<dimen name="rounded_corner_content_padding">6px</dimen>
|
||||
|
||||
<!-- Height of the status bar header bar when on Keyguard -->
|
||||
<dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height_portrait</dimen>
|
||||
<dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height</dimen>
|
||||
|
||||
<!-- Margin on the left side of the carrier text on Keyguard -->
|
||||
<dimen name="keyguard_carrier_text_margin">@dimen/status_bar_padding_start</dimen>
|
||||
|
Loading…
x
Reference in New Issue
Block a user