Merge "Settings: Support new alarms-only zen value."
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 3eaf38d..734cf7d 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -5689,6 +5689,9 @@
     <!-- Sound & notification > Sound section: Zen mode option: Important interruptions [CHAR LIMIT=60] -->
     <string name="zen_mode_option_important_interruptions">Allow only priority interruptions</string>
 
+    <!-- Sound & notification > Sound section: Zen mode option: Alarms only [CHAR LIMIT=60] -->
+    <string name="zen_mode_option_alarms">Allow only alarms</string>
+
     <!-- Sound & notification > Sound section: Zen mode option: No interruptions [CHAR LIMIT=60] -->
     <string name="zen_mode_option_no_interruptions">Don\'t interrupt</string>
 
diff --git a/src/com/android/settings/notification/ZenModeSettings.java b/src/com/android/settings/notification/ZenModeSettings.java
index c2e143a..93e5c4a 100644
--- a/src/com/android/settings/notification/ZenModeSettings.java
+++ b/src/com/android/settings/notification/ZenModeSettings.java
@@ -88,12 +88,14 @@
 
     private static final SettingPrefWithCallback PREF_ZEN_MODE = new SettingPrefWithCallback(
             SettingPref.TYPE_GLOBAL, KEY_ZEN_MODE, Global.ZEN_MODE, Global.ZEN_MODE_OFF,
-            Global.ZEN_MODE_OFF, Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS,
+            Global.ZEN_MODE_OFF, Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS, Global.ZEN_MODE_ALARMS,
             Global.ZEN_MODE_NO_INTERRUPTIONS) {
         protected String getCaption(Resources res, int value) {
             switch (value) {
                 case Global.ZEN_MODE_NO_INTERRUPTIONS:
                     return res.getString(R.string.zen_mode_option_no_interruptions);
+                case Global.ZEN_MODE_ALARMS:
+                    return res.getString(R.string.zen_mode_option_alarms);
                 case Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS:
                     return res.getString(R.string.zen_mode_option_important_interruptions);
                 default: