From 7c57f71f72b4be072ac9122307ac83b298f3400a Mon Sep 17 00:00:00 2001 From: Pranav Vashi Date: Wed, 22 May 2024 15:56:13 +0900 Subject: [PATCH] Settings: add option to enable AOD on charging only [2/2] Signed-off-by: Pranav Vashi --- res/values/evolution_strings.xml | 4 ++++ res/xml/security_lockscreen_settings.xml | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/res/values/evolution_strings.xml b/res/values/evolution_strings.xml index 09259b74c5d..b08cce5987f 100644 --- a/res/values/evolution_strings.xml +++ b/res/values/evolution_strings.xml @@ -230,4 +230,8 @@ Enable protection Hide from launcher Prevent this application from showing up in any launcher. Requires a launcher restart for changes to take effect. + + + Always show when charging + Display info when device is charging diff --git a/res/xml/security_lockscreen_settings.xml b/res/xml/security_lockscreen_settings.xml index 2763c94791c..6a736f2a1f8 100644 --- a/res/xml/security_lockscreen_settings.xml +++ b/res/xml/security_lockscreen_settings.xml @@ -112,6 +112,12 @@ settings:controller="com.android.settings.display.AmbientDisplayAlwaysOnPreferenceController" settings:userRestriction="no_ambient_display" /> + +