fix some bugs
This commit is contained in:
parent
de651568e3
commit
5e13d0735f
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue