fix some bugs

This commit is contained in:
hlq07 2018-05-28 00:59:34 +08:00
parent de651568e3
commit 5e13d0735f
1 changed files with 1 additions and 1 deletions

View File

@ -410,13 +410,13 @@ public class TodoItemUtil {
}
public static Calendar getNextCalendar(@NotNull Calendar old, @NotNull String interval) {
Calendar now = Calendar.getInstance();
if (!isValidAlarmIntString(interval)) {
throw new IllegalArgumentException("interval is bad formatted");
}
int[] fields = parseAlarmInterval(interval);
Calendar now = Calendar.getInstance();
Calendar newTime = CalendarUtil.roundToMinute(old);
while (!now.after(newTime)) {