Merge "Allow downtime to exit from no interruptions" into lmp-dev

This commit is contained in:
Jason Monk
2014-09-05 13:39:22 +00:00
committed by Android (Google) Code Review

View File

@@ -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");
}
}