Commit c424fbc7 authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

Fix bug in repeating intervals (see #43)

parent c419f6b2
Loading
Loading
Loading
Loading
+3 −1
Changes for src/android/Options.java: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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;