summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/values/cm_strings.xml6
-rw-r--r--res/xml/power_usage_summary.xml14
2 files changed, 17 insertions, 3 deletions
diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml
index a4f5331..d9e0745 100644
--- a/res/values/cm_strings.xml
+++ b/res/values/cm_strings.xml
@@ -662,4 +662,10 @@
<string name="battery_saver_threshold">Battery saver threshold</string>
<string name="battery_saver_summary">Reduce performance and limit background data</string>
<string name="battery_saver_summary_unavailable">Not available while charging</string>
+
+ <!-- Battery : Automatic performance profiles -->
+ <string name="autoperf_title">Enable per-app profiles</string>
+ <string name="autoperf_summary">Automatically choose an appropriate battery mode for various apps</string>
+ <string name="perf_profile_title">Battery mode</string>
+
</resources>
diff --git a/res/xml/power_usage_summary.xml b/res/xml/power_usage_summary.xml
index d1a8e4d..76d4e0f 100644
--- a/res/xml/power_usage_summary.xml
+++ b/res/xml/power_usage_summary.xml
@@ -19,9 +19,17 @@
android:title="@string/power_usage_summary_title"
settings:keywords="@string/keywords_battery">
- <com.android.settings.cyanogenmod.GlobalSettingSwitchPreference
- android:key="low_power"
- android:title="@string/battery_saver"/>
+ <ListPreference
+ android:key="pref_perf_profile"
+ android:dialogTitle="@string/perf_profile_title"
+ android:title="@string/perf_profile_title"
+ android:persistent="false" />
+
+ <com.android.settings.cyanogenmod.SecureSettingSwitchPreference
+ android:key="app_perf_profiles_enabled"
+ android:title="@string/autoperf_title"
+ android:summary="@string/autoperf_summary"
+ android:defaultValue="true" />
<com.android.settings.fuelgauge.BatteryHistoryPreference
android:key="battery_history" />