Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b836ddef authored by Jason Monk's avatar Jason Monk Committed by Android (Google) Code Review
Browse files

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

parents fdd04d42 acb8dfe0
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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");
            }
        }