diff options
| -rw-r--r-- | core/java/android/service/notification/ZenModeConfig.java | 6 | ||||
| -rw-r--r-- | core/res/res/xml/default_zen_mode_config.xml | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/core/java/android/service/notification/ZenModeConfig.java b/core/java/android/service/notification/ZenModeConfig.java index 510626b4de4d..5546e803342b 100644 --- a/core/java/android/service/notification/ZenModeConfig.java +++ b/core/java/android/service/notification/ZenModeConfig.java @@ -93,11 +93,11 @@ public class ZenModeConfig implements Parcelable { private static final boolean DEFAULT_ALLOW_ALARMS = true; private static final boolean DEFAULT_ALLOW_MEDIA = true; private static final boolean DEFAULT_ALLOW_SYSTEM = false; - private static final boolean DEFAULT_ALLOW_CALLS = false; + private static final boolean DEFAULT_ALLOW_CALLS = true; private static final boolean DEFAULT_ALLOW_MESSAGES = false; private static final boolean DEFAULT_ALLOW_REMINDERS = false; private static final boolean DEFAULT_ALLOW_EVENTS = false; - private static final boolean DEFAULT_ALLOW_REPEAT_CALLERS = false; + private static final boolean DEFAULT_ALLOW_REPEAT_CALLERS = true; private static final boolean DEFAULT_CHANNELS_BYPASSING_DND = false; private static final int DEFAULT_SUPPRESSED_VISUAL_EFFECTS = 0; @@ -486,7 +486,7 @@ public class ZenModeConfig implements Parcelable { rt.allowCallsFrom = from; rt.allowMessagesFrom = from; } else { - rt.allowCallsFrom = DEFAULT_SOURCE; + rt.allowCallsFrom = DEFAULT_CALLS_SOURCE; rt.allowMessagesFrom = DEFAULT_SOURCE; } rt.allowAlarms = safeBoolean(parser, ALLOW_ATT_ALARMS, DEFAULT_ALLOW_ALARMS); diff --git a/core/res/res/xml/default_zen_mode_config.xml b/core/res/res/xml/default_zen_mode_config.xml index ba8173e9e012..35a0cc2b29c4 100644 --- a/core/res/res/xml/default_zen_mode_config.xml +++ b/core/res/res/xml/default_zen_mode_config.xml @@ -19,8 +19,8 @@ <!-- Default configuration for zen mode. See android.service.notification.ZenModeConfig. --> <zen version="7"> - <allow alarms="true" media="true" system="false" calls="false" callsFrom="2" messages="false" - reminders="false" events="false" /> + <allow alarms="true" media="true" system="false" calls="true" callsFrom="2" messages="false" + reminders="false" events="false" repeatCallers="true" /> <!-- all visual effects that exist as of P --> <disallow suppressedVisualEffect="511" /> |