Allow to suppress notifications sound/vibration if screen is ON [2/2]
Change-Id: I07c60670b43195a5680fdc0497d0326d1f56ea2f
diff --git a/res/values/leaf_strings.xml b/res/values/leaf_strings.xml
index da3696c..d64b40d 100644
--- a/res/values/leaf_strings.xml
+++ b/res/values/leaf_strings.xml
@@ -57,4 +57,8 @@
<!-- QS auto brightness icon -->
<string name="qs_auto_brightness_title">Auto brightness icon</string>
<string name="qs_auto_brightness_summary">Show toggle for adaptive brightness near the slider</string>
+
+ <!-- Annoying Notifications -->
+ <string name="notification_sound_vib_screen_on_title">Annoying Notifications</string>
+ <string name="notification_sound_vib_screen_on_summary">Play sound and vibration for notifications when screen is on</string>
</resources>
diff --git a/res/xml/configure_notification_settings.xml b/res/xml/configure_notification_settings.xml
index 59c0c21..ccfa5b7 100644
--- a/res/xml/configure_notification_settings.xml
+++ b/res/xml/configure_notification_settings.xml
@@ -111,6 +111,13 @@
<PreferenceCategory
android:key="advanced_section_header"
android:title="@string/advanced_section_header">
+
+ <com.android.settings.support.SystemSettingSwitchPreference
+ android:key="notification_sound_vib_screen_on"
+ android:title="@string/notification_sound_vib_screen_on_title"
+ android:summary="@string/notification_sound_vib_screen_on_summary"
+ android:defaultValue="true" />
+
<com.android.settingslib.RestrictedPreference
android:key="zen_mode_notifications"
android:order="17"