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

Commit ad6a3e02 authored by Matt Pietal's avatar Matt Pietal
Browse files

[DO NOT MERGE] Lockscreen/Shade upscaling

Aligns shade width and clock placement with latest UX specs. Removes
concept of a fixed stack scroller width in favor of margins that
adjust across various swXXXdp files. For phones, this means the shade
takes up the entire width, for larger portrait devices, a sizeable
margin, and for larger landscape devices, a smaller but visible
margin.

Remove unused code from KeyguardStatusView

Fixes: 214596698
Test: atest NotificationPanelViewControllerTest && Tested landscape
and portrait across all device categories
Change-Id: Ie384d88c9a2c20516c29dc49b9b7cc54de89917c

Change-Id: I82764f776aa43ba69d7bf93b76af111e20fd07b8
parent 09076f0a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@
    systemui:layout_constraintStart_toStartOf="parent"
    systemui:layout_constraintEnd_toEndOf="parent"
    systemui:layout_constraintTop_toTopOf="parent"
    android:layout_marginHorizontal="@dimen/status_view_margin_horizontal"
    android:layout_width="0dp"
    android:layout_height="wrap_content">
    <LinearLayout
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@

    <LinearLayout
        android:id="@+id/half_shelf"
        android:layout_width="@dimen/qs_panel_width"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:gravity="bottom"
+4 −2
Original line number Diff line number Diff line
@@ -94,10 +94,11 @@
        <FrameLayout
            android:id="@+id/qs_frame"
            android:layout="@layout/qs_panel"
            android:layout_width="@dimen/qs_panel_width"
            android:layout_width="0dp"
            android:layout_height="0dp"
            android:clipToPadding="false"
            android:clipChildren="false"
            android:layout_marginHorizontal="@dimen/notification_panel_margin_horizontal"
            systemui:viewType="com.android.systemui.plugins.qs.QS"
            systemui:layout_constraintStart_toStartOf="parent"
            systemui:layout_constraintEnd_toEndOf="parent"
@@ -115,8 +116,9 @@
        <com.android.systemui.statusbar.notification.stack.NotificationStackScrollLayout
            android:id="@+id/notification_stack_scroller"
            android:layout_marginTop="@dimen/notification_panel_margin_top"
            android:layout_width="@dimen/notification_panel_width"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_marginHorizontal="@dimen/notification_panel_margin_horizontal"
            android:layout_marginBottom="@dimen/notification_panel_margin_bottom"
            android:importantForAccessibility="no"
            systemui:layout_constraintStart_toStartOf="parent"
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/plugin_frame"
    android:theme="@style/Theme.SystemUI.QuickSettings"
    android:layout_width="@dimen/qs_panel_width"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="center_horizontal"
    android:layout_marginTop="@dimen/notification_side_paddings"
+1 −0
Original line number Diff line number Diff line
@@ -46,4 +46,5 @@
     the shade -->
    <dimen name="lockscreen_shade_media_transition_distance">200dp</dimen>

    <dimen name="notification_panel_margin_horizontal">12dp</dimen>
</resources>
Loading