Commit c424fbc7 by Sebastián Katzer

Fix bug in repeating intervals (see #43)

parent c419f6b2
...@@ -68,7 +68,9 @@ public class Options { ...@@ -68,7 +68,9 @@ public class Options {
} else if (repeat.equalsIgnoreCase("yearly")) { } else if (repeat.equalsIgnoreCase("yearly")) {
interval = AlarmManager.INTERVAL_DAY*365; interval = AlarmManager.INTERVAL_DAY*365;
} else { } else {
interval = Integer.getInteger(repeat, 0) * 60000; try {
interval = Integer.parseInt(repeat) * 60000;
} catch (Exception e) {};
} }
return this; return this;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment