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

Commit 837697a8 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Track the earliest alarm for exiting DND.

Test: manual
Change-Id: Ifa7ae6b6f3f8ff2c7cc8382ab73bf2bc89cd085e
Fixes: 65332502
parent e5ce071b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -42,7 +42,8 @@ public class ScheduleCalendar {

    public void maybeSetNextAlarm(long now, long nextAlarm) {
        if (mSchedule != null) {
            if (mSchedule.exitAtAlarm && now > mSchedule.nextAlarm) {
            if (mSchedule.exitAtAlarm
                    && (now > mSchedule.nextAlarm || nextAlarm < mSchedule.nextAlarm)) {
                mSchedule.nextAlarm = nextAlarm;
            }
        }