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

Commit b52de824 authored by Dan Sandler's avatar Dan Sandler Committed by Gerrit Code Review
Browse files

Merge "Use GregorianCalendar.add() when searching for next alarm."

parents 60d142c5 12d33932
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -511,7 +511,7 @@ public class ZenModePanel extends LinearLayout {
        GregorianCalendar weekRange = new GregorianCalendar();
        final long now = weekRange.getTimeInMillis();
        setToMidnight(weekRange);
        weekRange.roll(Calendar.DATE, 6);
        weekRange.add(Calendar.DATE, 6);
        final long nextAlarmMs = mController.getNextAlarm();
        if (nextAlarmMs > 0) {
            GregorianCalendar nextAlarm = new GregorianCalendar();