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

Commit 747f25cc authored by Geoffrey Pitsch's avatar Geoffrey Pitsch
Browse files

Center switch vertically with primary text

Fixes: 38248336
Test: manual
Change-Id: I48bfb244abff47c16ca1f24c0027448a2a238015
parent 33532e02
Loading
Loading
Loading
Loading
+31 −31
Original line number Original line Diff line number Diff line
@@ -71,20 +71,29 @@
        android:layout_height="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginBottom="20dp"
        android:layout_marginBottom="20dp"
        android:layout_marginEnd="@*android:dimen/notification_content_margin_end"
        android:layout_marginEnd="@*android:dimen/notification_content_margin_end"
        android:orientation="horizontal">
        android:orientation="vertical">
        <!-- Channel Text -->
        <!-- Channel Text -->
        <LinearLayout
        <LinearLayout
            android:layout_width="0dp"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:orientation="horizontal">
            android:orientation="vertical">
            <!-- Channel Name -->
            <!-- Channel Name -->
            <TextView
            <TextView
                android:id="@+id/channel_name"
                android:id="@+id/channel_name"
                android:layout_width="wrap_content"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:layout_marginBottom="6dp"
                android:layout_marginBottom="6dp"
                style="@style/TextAppearance.NotificationInfo.Primary" />
                style="@style/TextAppearance.NotificationInfo.Primary" />
            <!-- Ban Channel Switch -->
            <Switch
                android:id="@+id/channel_enabled_switch"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="end|center_vertical"
                android:contentDescription="@string/notification_channel_switch_accessibility"
                android:background="@null" />
        </LinearLayout>
        <!-- Secondary Text - only one shows at a time -->
        <!-- Secondary Text - only one shows at a time -->
        <TextView
        <TextView
            android:id="@+id/channel_disabled"
            android:id="@+id/channel_disabled"
@@ -108,15 +117,6 @@
            android:maxLines="1"
            android:maxLines="1"
            style="@style/TextAppearance.NotificationInfo.Secondary.Link"/>
            style="@style/TextAppearance.NotificationInfo.Secondary.Link"/>
    </LinearLayout>
    </LinearLayout>
        <!-- Ban Channel Switch -->
        <Switch
            android:id="@+id/channel_enabled_switch"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="end|center_vertical"
            android:contentDescription="@string/notification_channel_switch_accessibility"
            android:background="@null" />
    </LinearLayout>


    <!-- Settings and Done buttons -->
    <!-- Settings and Done buttons -->
    <LinearLayout
    <LinearLayout