Settings: add option to enable AOD on charging only [2/2]

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This commit is contained in:
Pranav Vashi
2024-05-22 15:56:13 +09:00
committed by Joey
parent 49c520a7ab
commit 7c57f71f72
2 changed files with 10 additions and 0 deletions

View File

@@ -230,4 +230,8 @@
<string name="enable_protection">Enable protection</string>
<string name="hide_from_launcher_title">Hide from launcher</string>
<string name="hide_from_launcher_summary">Prevent this application from showing up in any launcher. Requires a launcher restart for changes to take effect.</string>
<!-- Doze on charge -->
<string name="doze_on_charge_title">Always show when charging</string>
<string name="doze_on_charge_summary">Display info when device is charging</string>
</resources>

View File

@@ -112,6 +112,12 @@
settings:controller="com.android.settings.display.AmbientDisplayAlwaysOnPreferenceController"
settings:userRestriction="no_ambient_display" />
<org.evolution.settings.preferences.SecureSettingSwitchPreference
android:key="doze_on_charge"
android:title="@string/doze_on_charge_title"
android:summary="@string/doze_on_charge_summary"
android:defaultValue="false" />
<Preference
android:key="ambient_display_tap"
android:title="@string/ambient_display_tap_screen_title"