Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ec6c7a2 authored by shawnlin's avatar shawnlin Committed by Shawn Lin
Browse files

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: I21134a31f401f056a786dc03d82ecdb648cf639a
parent 27d83d16
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -218,9 +218,9 @@

    <string translatable="false" name="config_mainBuiltInDisplayCutoutRectApproximation">
        M 0.0,0.0
        h 136
        h 145
        v 136
        h -136
        h -145
        Z
        @left
    </string>
@@ -234,12 +234,10 @@
        rounded_corner_radius to more accurately provide a "radius" for the rounded corners.-->
    <dimen name="rounded_corner_radius_adjustment">8px</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">145px</dimen>
    <dimen name="status_bar_height_landscape">28dp</dimen>
    <!-- Height of area above QQS where battery/time go (48dp to reduce scrolling) -->
    <dimen name="quick_qs_offset_height">48dp</dimen>
    <!-- Height of the status bar.
         Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
         -->
    <dimen name="status_bar_height">28dp</dimen>

    <!-- Not allow to switch to higher refresh rate when display brightness setting is
         equal or less than this value -->
+2 −2
Original line number Diff line number Diff line
@@ -59,8 +59,8 @@
    <!-- Doze: whether the double tap sensor reports 2D touch coordinates -->
    <bool name="doze_double_tap_reports_touch_coordinates">true</bool>

    <!-- Height of the status bar header bar when on Keyguard (match status_bar_portrait) -->
    <dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height_portrait</dimen>
    <!-- Height of the status bar header bar when on Keyguard (match status_bar_height) -->
    <dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height</dimen>

    <!-- Doze: Table that translates sensor values from the doze_brightness_sensor_type sensor
               to brightness values; -1 means keeping the current brightness. -->