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

Commit 16e58432 authored by Edgar Wang's avatar Edgar Wang
Browse files

Fix the inconsistent alignment of the main switch preference.

Replace the margin of the widget with the padding.

Bug: 232494666
Test: manual test
Change-Id: Id96a868c2e5f271803454c2e207aab80db849111
parent 15a8232e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -20,6 +20,11 @@
    android:layout_height="wrap_content"
    android:layout_width="match_parent"
    android:background="?android:attr/colorBackground"
    android:minHeight="?android:attr/listPreferredItemHeight"
    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
    android:paddingTop="@dimen/settingslib_switchbar_margin"
    android:paddingBottom="@dimen/settingslib_switchbar_margin"
    android:orientation="vertical">

    <LinearLayout
@@ -27,7 +32,6 @@
        android:minHeight="@dimen/settingslib_min_switch_bar_height"
        android:layout_height="wrap_content"
        android:layout_width="match_parent"
        android:layout_margin="@dimen/settingslib_switchbar_margin"
        android:paddingStart="@dimen/settingslib_switchbar_padding_left"
        android:paddingEnd="@dimen/settingslib_switchbar_padding_right">