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

Commit 658ac8be authored by Sam Mortimer's avatar Sam Mortimer Committed by Bruno Martins
Browse files

Settings: Add back battery and notification lights settings

Change-Id: Ia5f635d2a493a859068af3d6b7502cc6d3db5893
parent 2104bc44
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@
-->

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
                  xmlns:lineage="http://schemas.android.com/apk/res/lineageos.platform"
                  xmlns:settings="http://schemas.android.com/apk/res-auto"
                  android:title="@string/configure_notification_settings">

@@ -162,5 +163,11 @@
            android:title="@string/notification_assistant_title"
            android:summary="@string/notification_assistant_summary"
            settings:controller="com.android.settings.notification.NotificationAssistantPreferenceController"/>

        <!-- Notification lights -->
        <org.lineageos.internal.lineageparts.LineagePartsPreference
            android:key="notification_lights"
            lineage:requiresConfig="@*android:bool/config_intrusiveNotificationLed"
            lineage:replacesKey="notification_pulse" />
    </PreferenceCategory>
</PreferenceScreen>
+7 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

<PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:lineage="http://schemas.android.com/apk/res/lineageos.platform"
    xmlns:settings="http://schemas.android.com/apk/res-auto"
    android:key="power_usage_summary_screen"
    android:title="@string/power_usage_summary_title"
@@ -58,6 +59,12 @@
        settings:controller="com.android.settings.fuelgauge.batterytip.BatteryManagerPreferenceController"
        settings:keywords="@string/keywords_battery_adaptive_preferences" />

    <!-- Battery light -->
    <org.lineageos.internal.lineageparts.LineagePartsPreference
        android:key="battery_lights"
        lineage:requiresConfig="@*lineageos.platform:integer/config_deviceLightCapabilities"
        lineage:requiresConfigMask="64" />

    <SwitchPreference
        android:key="battery_percentage"
        android:title="@string/battery_percentage"