Commit c424fbc7 by Sebastián Katzer

Fix bug in repeating intervals (see #43)

parent c419f6b2
......@@ -68,7 +68,9 @@ public class Options {
} else if (repeat.equalsIgnoreCase("yearly")) {
interval = AlarmManager.INTERVAL_DAY*365;
} else {
interval = Integer.getInteger(repeat, 0) * 60000;
try {
interval = Integer.parseInt(repeat) * 60000;
} catch (Exception e) {};
}
return this;
......@@ -211,4 +213,4 @@ public class Options {
return icon;
}
}
\ No newline at end of file
}
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