Browse Source

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
Zhao Wei Liew 2 years ago
parent
commit
6183d22b5a
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      res/xml/power_usage_summary.xml

+ 6
- 0
res/xml/power_usage_summary.xml View File

@@ -16,6 +16,7 @@
16 16
 
17 17
 <PreferenceScreen
18 18
     xmlns:android="http://schemas.android.com/apk/res/android"
19
+    xmlns:lineage="http://schemas.android.com/apk/res/lineageos.platform"
19 20
     xmlns:settings="http://schemas.android.com/apk/res-auto"
20 21
     android:key="power_usage_summary_screen"
21 22
     android:title="@string/power_usage_summary_title"
@@ -44,6 +45,11 @@
44 45
         android:title="@string/smart_battery_manager_title"
45 46
         settings:controller="com.android.settings.fuelgauge.batterytip.BatteryManagerPreferenceController" />
46 47
 
48
+    <!-- Custom perf profiles settings -->
49
+    <org.lineageos.internal.lineageparts.LineagePartsPreference
50
+        android:key="perf_profile_settings"
51
+        lineage:replacesKey="battery_saver_summary" />
52
+
47 53
     <SwitchPreference
48 54
         android:key="battery_percentage"
49 55
         android:title="@string/battery_percentage"