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

Commit 3bfa03fd authored by mxyyiyi's avatar mxyyiyi
Browse files

[Expressive] Wrap the single preference with the no label preference group.

- Otherwise the padding above will be incorrect.

Bug: 378501860
Bug: 349652542
Test: presubmit + manual
Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled
Change-Id: Iabea3449f02e4d7caafc19e401766d0213094eb3
parent dc36cc44
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -67,11 +67,13 @@
            settings:keywords="@string/keywords_battery_adaptive_preferences" />
    </com.android.settingslib.widget.SettingsTitlelessPreferenceCategory>

    <com.android.settingslib.widget.SettingsTitlelessPreferenceCategory>
        <SwitchPreferenceCompat
            android:key="status_bar_show_battery_percent"
            android:title="@string/battery_percentage"
            android:summary="@string/battery_percentage_description"
            settings:controller="com.android.settings.display.BatteryPercentagePreferenceController" />
    </com.android.settingslib.widget.SettingsTitlelessPreferenceCategory>

    <com.android.settingslib.widget.FooterPreference
        android:key="power_usage_footer"