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

Commit 14d5dda7 authored by Zhao Wei Liew's avatar Zhao Wei Liew Committed by Bruno Martins
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 88220218
Loading
Loading
Loading
Loading
+6 −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"
@@ -45,6 +46,11 @@
        android:title="@string/smart_battery_manager_title"
        settings:controller="com.android.settings.fuelgauge.batterytip.BatteryManagerPreferenceController" />

    <!-- 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"