Skip to content

Commit

Permalink
Fix status bar height for Android 12L
Browse files Browse the repository at this point in the history
Prior to 12L:
- values: sbh links to sbh_port
- values-land: sbh links to sbh_land
However, in 12L this was flipped around:
- values: sbh_port links to sbh
- values-land: defines sbh standalone
To fix for 12L without breaking them for prior versions, break the link and define each of them

Also, while we're at it, remove a few links in my own overlays, as they might break similarly in the future

Change-Id: Ib4d1896599f47a39274c4930fd765891bf143f7d
  • Loading branch information
AndyCGYan committed Apr 17, 2022
1 parent 0382842 commit ca9375e
Show file tree
Hide file tree
Showing 213 changed files with 745 additions and 306 deletions.
5 changes: 5 additions & 0 deletions Asus/ZenFone5/res/values-land/notch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">24dp</dimen>
</resources>
2 changes: 2 additions & 0 deletions Asus/ZenFone5/res/values/notch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">87px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">87px</dimen>
<!-- Height of the status bar in landscape -->
Expand Down
4 changes: 4 additions & 0 deletions Asus/ZenFone5Z/res/values-land/notch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>
2 changes: 2 additions & 0 deletions Asus/ZenFone5Z/res/values/notch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">87px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">87px</dimen>
<!-- Height of the status bar in landscape -->
Expand Down
4 changes: 4 additions & 0 deletions Asus/ZenFoneMaxM2/res/values-land/notch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>
2 changes: 2 additions & 0 deletions Asus/ZenFoneMaxM2/res/values/notch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">57px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">57px</dimen>
<!-- Height of the status bar in landscape -->
Expand Down
4 changes: 4 additions & 0 deletions Asus/ZenFoneMaxShot/res/values-land/notch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>
2 changes: 2 additions & 0 deletions Asus/ZenFoneMaxShot/res/values/notch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">81px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">81px</dimen>
<!-- Height of the status bar in landscape -->
Expand Down
4 changes: 4 additions & 0 deletions Asus/Zenfone5-10/res/values-land/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">28dp</dimen>
</resources>
3 changes: 2 additions & 1 deletion Asus/Zenfone5-10/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="config_showNavigationBar">true</bool>

<dimen name="status_bar_height_portrait">87.0px</dimen>
<dimen name="status_bar_height">87px</dimen>
<dimen name="status_bar_height_portrait">87px</dimen>
<dimen name="status_bar_height_landscape">28dp</dimen>

<fraction name="config_autoBrightnessAdjustmentMaxGamma">300.0%</fraction>
Expand Down
4 changes: 4 additions & 0 deletions Essential/PH-1/res/values-land/notch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">84px</dimen>
</resources>
7 changes: 4 additions & 3 deletions Essential/PH-1/res/values/notch.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height_portrait">144.0px</dimen>
<dimen name="status_bar_height_landscape">84px</dimen>
<string name="config_mainBuiltInDisplayCutout">M -70, 0 L -70, 137 L 70, 137 L 70, 0 Z</string>
<dimen name="status_bar_height">144.0px</dimen>
<dimen name="status_bar_height_portrait">144.0px</dimen>
<dimen name="status_bar_height_landscape">84px</dimen>
<string name="config_mainBuiltInDisplayCutout">M -70, 0 L -70, 137 L 70, 137 L 70, 0 Z</string>
</resources>
4 changes: 4 additions & 0 deletions Huawei/ARE/res/values-land/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">96px</dimen>
</resources>
11 changes: 6 additions & 5 deletions Huawei/ARE/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="config_showNavigationBar">true</bool>


<dimen name="status_bar_height">96px</dimen>
<dimen name="status_bar_height_portrait">96px</dimen>
<dimen name="status_bar_height_landscape">96px</dimen>

<fraction name="config_autoBrightnessAdjustmentMaxGamma">300.0%</fraction>
<fraction name="config_maximumScreenDimRatio">20.000004%</fraction>

<integer name="config_screenBrightnessDark">1</integer>
<integer name="config_screenBrightnessDim">6</integer>
<integer name="config_screenBrightnessDoze">1</integer>
Expand All @@ -19,7 +20,7 @@
<integer name="config_autoBrightnessDarkeningLightDebounce">8000</integer>
<integer name="config_brightness_ramp_rate_fast">180</integer>
<integer name="config_brightness_ramp_rate_slow">60</integer>

<integer-array name="config_autoBrightnessLevels">
<item>8</item>
<item>55</item>
Expand All @@ -35,6 +36,6 @@
<item>250</item>
<item>255</item>
</integer-array>

<string name="config_mainBuiltInDisplayCutout">M-100,0c17.9,0 32.8,19.4 32.8,32.8l0,0C-62.4,68.6 -38.7,96 0,96c37.1,0 62.4,-27.4 67.3,-63.2l0,0C67.3,19.4 82.1,0 100,0H-100z</string>
</resources>
4 changes: 4 additions & 0 deletions Huawei/hi6250/ANE/res/values-land/notch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>
2 changes: 2 additions & 0 deletions Huawei/hi6250/ANE/res/values/notch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">90px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">90px</dimen>
<!-- Height of the status bar in landscape -->
Expand Down
4 changes: 4 additions & 0 deletions Huawei/kirin970/CLT/res/values-land/notch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>
2 changes: 2 additions & 0 deletions Huawei/kirin970/CLT/res/values/notch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">81px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">81px</dimen>
<!-- Height of the status bar in landscape -->
Expand Down
4 changes: 4 additions & 0 deletions Huawei/kirin970/COL/res/values-land/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">90px</dimen>
</resources>
1 change: 1 addition & 0 deletions Huawei/kirin970/COL/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<dimen name="navigation_bar_width">7.5mm</dimen>
<dimen name="notification_header_padding_bottom">8.0dip</dimen>
<dimen name="notification_header_padding_top">8.0dip</dimen>
<dimen name="status_bar_height">90px</dimen>
<dimen name="status_bar_height_portrait">90px</dimen>
<dimen name="status_bar_height_landscape">90px</dimen>
<string translatable="false" name="config_mainBuiltInDisplayCutout">M -156,0 L -156,90 L 156,90 L 156,0 Z</string>
Expand Down
4 changes: 4 additions & 0 deletions Huawei/kirin970/COR/res/values-land/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">88px</dimen>
</resources>
2 changes: 2 additions & 0 deletions Huawei/kirin970/COR/res/values/values.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@
<dimen name="navigation_bar_width">88px</dimen>
<dimen name="notification_header_padding_top">8.0dip</dimen>
<dimen name="notification_header_padding_bottom">8.0dip</dimen>
<!-- Height of the status bar -->
<dimen name="status_bar_height">88px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">88px</dimen>
<!-- Height of the status bar in landscape -->
Expand Down
4 changes: 4 additions & 0 deletions Huawei/kirin970/EML/res/values-land/notch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>
2 changes: 2 additions & 0 deletions Huawei/kirin970/EML/res/values/notch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">85px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">85px</dimen>
<!-- Height of the status bar in landscape -->
Expand Down
4 changes: 4 additions & 0 deletions Infinix/Note10Pro/res/values-land/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">28.0dip</dimen>
</resources>
3 changes: 2 additions & 1 deletion Infinix/Note10Pro/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
<bool name="skip_restoring_network_selection">true</bool>

<dimen name="quick_qs_offset_height">36.0dip</dimen>
<dimen name="status_bar_height_landscape">28.0dip</dimen>
<dimen name="status_bar_height">36.0dip</dimen>
<dimen name="status_bar_height_portrait">36.0dip</dimen>
<dimen name="status_bar_height_landscape">28.0dip</dimen>

<integer name="config_screenBrightnessSettingMinimum">10</integer>
<integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer>
Expand Down
4 changes: 4 additions & 0 deletions Infinix/Note7/res/values-land/notch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">28.0dip</dimen>
</resources>
2 changes: 2 additions & 0 deletions Infinix/Note7/res/values/notch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">40.0dip</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">40.0dip</dimen>
<!-- Height of the status bar in landscape -->
Expand Down
4 changes: 4 additions & 0 deletions Infinix/Note8/res/values-land/notch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">28.0dip</dimen>
</resources>
2 changes: 2 additions & 0 deletions Infinix/Note8/res/values/notch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">44.0dip</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">44.0dip</dimen>
<!-- Height of the status bar in landscape -->
Expand Down
4 changes: 4 additions & 0 deletions Infinix/S4/res/values-land/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">28.0dip</dimen>
</resources>
2 changes: 2 additions & 0 deletions Infinix/S4/res/values/notch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">50px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">50px</dimen>
<!-- Height of the status bar in landscape -->
Expand Down
4 changes: 4 additions & 0 deletions Infinix/Zero6/res/values-land/notch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>
2 changes: 2 additions & 0 deletions Infinix/Zero6/res/values/notch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">86.0px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">86.0px</dimen>
<!-- Height of the status bar in landscape -->
Expand Down
4 changes: 4 additions & 0 deletions LG/G7/res/values-land/notch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>
2 changes: 2 additions & 0 deletions LG/G7/res/values/notch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">94px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">94px</dimen>
<!-- Height of the status bar in landscape -->
Expand Down
4 changes: 4 additions & 0 deletions LG/V40/res/values-land/notch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>
2 changes: 2 additions & 0 deletions LG/V40/res/values/notch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">94px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">94px</dimen>
<!-- Height of the status bar in landscape -->
Expand Down
4 changes: 2 additions & 2 deletions LG/mfh505glm-SystemUI/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<dimen name="status_bar_padding_start">35px</dimen>
<dimen name="status_bar_padding_end">35px</dimen>
<dimen name="status_bar_header_height_keyguard">124px</dimen>
<dimen name="keyguard_carrier_text_margin">@dimen/status_bar_padding_start</dimen>
<dimen name="system_icons_keyguard_padding_end">@dimen/status_bar_padding_end</dimen>
<dimen name="keyguard_carrier_text_margin">35px</dimen>
<dimen name="system_icons_keyguard_padding_end">35px</dimen>
</resources>
3 changes: 2 additions & 1 deletion LG/mfh505glm/res/values-land/config.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="quick_qs_offset_height">@dimen/status_bar_height_landscape</dimen>
<dimen name="status_bar_height">28dp</dimen>
<dimen name="quick_qs_offset_height">28dp</dimen>
</resources>
3 changes: 2 additions & 1 deletion LG/mfh505glm/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="config_showNavigationBar">true</bool>

<dimen name="status_bar_height">124px</dimen>
<dimen name="status_bar_height_portrait">124px</dimen>
<dimen name="status_bar_height_landscape">28dp</dimen>
<dimen name="quick_qs_offset_height">@dimen/status_bar_height_portrait</dimen>
<dimen name="quick_qs_offset_height">124px</dimen>

<integer name="config_screenBrightnessSettingMinimum">1</integer>

Expand Down
4 changes: 4 additions & 0 deletions Lenovo/Z5/res/values-land/notch.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>
2 changes: 2 additions & 0 deletions Lenovo/Z5/res/values/notch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*/
-->
<resources>
<!-- Height of the status bar -->
<dimen name="status_bar_height">87px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">87px</dimen>
<!-- Height of the status bar in landscape -->
Expand Down
4 changes: 4 additions & 0 deletions Meizu/M2181-SystemUI/res/values-land/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_header_height_keyguard">28dp</dimen>
</resources>
6 changes: 3 additions & 3 deletions Meizu/M2181-SystemUI/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<resources>
<dimen name="status_bar_padding_start">50px</dimen>
<dimen name="status_bar_padding_end">50px</dimen>
<dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height</dimen>
<dimen name="keyguard_carrier_text_margin">@dimen/status_bar_padding_start</dimen>
<dimen name="system_icons_keyguard_padding_end">@dimen/status_bar_padding_end</dimen>
<dimen name="status_bar_header_height_keyguard">96px</dimen>
<dimen name="keyguard_carrier_text_margin">50px</dimen>
<dimen name="system_icons_keyguard_padding_end">50px</dimen>
</resources>
3 changes: 2 additions & 1 deletion Meizu/M2181/res/values-land/config.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="quick_qs_offset_height">@dimen/status_bar_height_landscape</dimen>
<dimen name="status_bar_height">28dp</dimen>
<dimen name="quick_qs_offset_height">28dp</dimen>
</resources>
3 changes: 2 additions & 1 deletion Meizu/M2181/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
<bool name="config_enableBurnInProtection">true</bool>

<dimen name="status_bar_height">96px</dimen>
<dimen name="status_bar_height_portrait">96px</dimen>
<dimen name="status_bar_height_landscape">28dp</dimen>
<dimen name="quick_qs_offset_height">@dimen/status_bar_height_portrait</dimen>
<dimen name="quick_qs_offset_height">96px</dimen>

<integer name="config_screenBrightnessDoze">5</integer>
<integer name="config_screenBrightnessSettingMinimum">1</integer>
Expand Down
1 change: 1 addition & 0 deletions Moto/E6Plus/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<item>mobile_ia,14,0,2,-1,true</item>
<item>mobile_emergency,15,0,2,-1,true</item>
</string-array>
<dimen name="status_bar_height">24.0dip</dimen>
<dimen name="status_bar_height_portrait">24.0dip</dimen>
<integer name="config_autoBrightnessBrighteningLightDebounce">1000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">1500</integer>
Expand Down
4 changes: 4 additions & 0 deletions Moto/G100-Nio/res/values-land/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height">24dp</dimen>
</resources>
2 changes: 2 additions & 0 deletions Moto/G100-Nio/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@
<!-- Default radius of the software rounded corners. -->
<dimen name="rounded_corner_radius">105px</dimen>

<!-- Height of the status bar -->
<dimen name="status_bar_height">120px</dimen>
<!-- 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">120px</dimen>
Expand Down
Loading

0 comments on commit ca9375e

Please sign in to comment.