From f1b48144a970807d4cb63c308f9a38de535f92ed Mon Sep 17 00:00:00 2001 From: Zach Johnson Date: Mon, 24 Aug 2015 15:38:27 -0700 Subject: [PATCH] *ring ring* Who is it? Destiny? I've been expecting your call... https://www.youtube.com/watch?v=7VFPtY7hiGw Allow USAGE_NOTIFICATION_RINGTONE regardless of effect supression component, because otherwise we can't use the system implementation of ringtones (audio or vibration). If a platform wishes to turn supress this, it can be disabled through the default zen configuration if necessary. Change-Id: I02a89376b40c6eecde2468c93898b4a821315e64 --- .../java/com/android/server/notification/ZenModeHelper.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/core/java/com/android/server/notification/ZenModeHelper.java b/services/core/java/com/android/server/notification/ZenModeHelper.java index 57d7758fb6aa0..2fda7455bc2a5 100644 --- a/services/core/java/com/android/server/notification/ZenModeHelper.java +++ b/services/core/java/com/android/server/notification/ZenModeHelper.java @@ -411,8 +411,7 @@ public class ZenModeHelper { applyRestrictions(muteNotifications, USAGE_NOTIFICATION); // call restrictions - final boolean muteCalls = zen && !mConfig.allowCalls && !mConfig.allowRepeatCallers - || mEffectsSuppressed; + final boolean muteCalls = zen && !mConfig.allowCalls && !mConfig.allowRepeatCallers; applyRestrictions(muteCalls, USAGE_NOTIFICATION_RINGTONE); // alarm restrictions