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

Commit 9139d5dd authored by Zhao Wei Liew's avatar Zhao Wei Liew Committed by Michael Bestas
Browse files

Settings: battery: Add LineageParts perf profiles

Replace the original battery saver preference with the performance
profiles preference in LineageParts. We'll encapsulate all settings
related to battery profiles within the preference.

Change-Id: I240e7f84838677b3755fc28cee4e982700829271
parent 3ed2b907
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
<PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
    xmlns:lineage="http://schemas.android.com/apk/res/lineageos.platform"
    android:title="@string/power_usage_summary_title"
    settings:keywords="@string/keywords_battery">

@@ -54,6 +55,11 @@
            android:key="battery_saver_summary"
            android:title="@string/battery_saver"/>

        <!-- Custom perf profiles settings -->
        <org.lineageos.internal.lineageparts.LineagePartsPreference
            android:key="perf_profile_settings"
            lineage:replacesKey="battery_saver_summary" />

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