From acb8dfe0a692883d56a787171cf350c24549beff Mon Sep 17 00:00:00 2001 From: Jason Monk Date: Thu, 4 Sep 2014 10:40:08 -0400 Subject: [PATCH] Allow downtime to exit from no interruptions Since the user can specify it to exit from no interruptions, it needs to actually exit. Bug: 17331112 Change-Id: I9a8412e5b42af17e79798f5ea4bcf3e19924cc93 --- .../com/android/server/notification/ConditionProviders.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/core/java/com/android/server/notification/ConditionProviders.java b/services/core/java/com/android/server/notification/ConditionProviders.java index 189131c557f4d..05ad1fe5ac083 100644 --- a/services/core/java/com/android/server/notification/ConditionProviders.java +++ b/services/core/java/com/android/server/notification/ConditionProviders.java @@ -545,8 +545,9 @@ public class ConditionProviders extends ManagedServices { setZenModeCondition(condition, "downtime"); } // exit downtime - if (!inDowntime && mode == Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS - && mDowntime.isDowntimeCondition(mExitCondition)) { + if (!inDowntime && mDowntime.isDowntimeCondition(mExitCondition) + && (mode == Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS + || mode == Global.ZEN_MODE_NO_INTERRUPTIONS)) { mZenModeHelper.setZenMode(Global.ZEN_MODE_OFF, "downtimeExit"); } }