Fix everything about NoCutout overlay

This commit is contained in:
Tadi 2018-11-19 19:49:00 +01:00
parent ab0defc922
commit 56ebc198e8
3 changed files with 12 additions and 4 deletions

View File

@ -20,7 +20,7 @@
android:versionName="1.0">
<overlay android:targetPackage="android"
android:category="com.android.internal.display_cutout_emulation"
android:priority="42"/>
android:priority="0"/>
<application android:label="@string/display_cutout_emulation_overlay" android:hasCode="false"/>
</manifest>

View File

@ -16,7 +16,10 @@
<resources>
<!-- Can't link to other dimensions here, but this should be status_bar_height_landscape -->
<dimen name="quick_qs_offset_height">28dp</dimen>
<dimen name="quick_qs_offset_height">24dp</dimen>
<!-- Total height of QQS in landscape; quick_qs_offset_height + 128 -->
<dimen name="quick_qs_total_height">156dp</dimen>
</resources>
<dimen name="quick_qs_total_height">152dp</dimen>
<!-- Because we hardcode status_bar_height in Oreo device overlays,
we also need to do it here. -->
<dimen name="status_bar_height">24dp</dimen>
</resources>

View File

@ -28,6 +28,11 @@
<!-- Height of the status bar -->
<dimen name="status_bar_height_portrait">24dp</dimen>
<dimen name="status_bar_height_landscape">24dp</dimen>
<!-- Because we hardcode status_bar_height in Oreo device overlays,
we also need to do it here. -->
<dimen name="status_bar_height">24dp</dimen>
<!-- For rounded corners to work, set rounded_corner_radius_bottom or rounded_corner_radius
in device overlay. -->
<dimen name="rounded_corner_radius_top">@*android:dimen/rounded_corner_radius_bottom</dimen>
<!-- Height of area above QQS where battery/time go (equal to status bar height if > 48dp) -->