Battery: Implement background process killer [2/2]

Change-Id: I9a07a6866ad1a4f6b07823b7be2dd6ae81a36c1c
Signed-off-by: dlwlrma123 <alexfinhart@gmail.com>
This commit is contained in:
Dil3mm4
2021-12-31 11:24:42 +08:00
committed by Joey
parent 7b7a181490
commit 489912f297
2 changed files with 10 additions and 0 deletions

View File

@@ -294,4 +294,8 @@
<string name="pattern_custom">Custom</string>
<string name="custom_vibration_pattern_title">Custom pattern</string>
<string name="custom_vibration_pattern_summary">Set a custom vibration pattern</string>
<!-- Idle manager -->
<string name="idle_manager_title">Idle manager</string>
<string name="idle_manager_summary">Stop all non-essential background processes when the device is idle</string>
</resources>

View File

@@ -96,6 +96,12 @@
settings:controller="com.android.settings.fuelgauge.ChargingSpeedPreferenceController"
settings:requiresService="lineagehealth" />
<org.evolution.settings.preferences.SystemSettingSwitchPreference
android:key="arcane_idle_manager"
android:title="@string/idle_manager_title"
android:summary="@string/idle_manager_summary"
android:defaultValue="false" />
<!-- Battery light -->
<lineageos.preference.LineagePartsPreference
android:key="battery_lights"