Changed where and when we save alarms
This commit is contained in:
@@ -91,14 +91,14 @@ public final class AlarmUtils {
|
||||
|
||||
if (a.isSnoozed()) {
|
||||
a.stopSnoozing();
|
||||
save(c); // TODO: not necessary?
|
||||
}
|
||||
|
||||
if (!a.hasRecurrence()) {
|
||||
a.setEnabled(false);
|
||||
save(c); // TODO: not necessary?
|
||||
}
|
||||
|
||||
save(c); // Save any changes
|
||||
|
||||
// If service is not running, nothing happens
|
||||
// TODO: Since RingtoneService is a bound service, will this destroy the service after returning?
|
||||
// Note that if a stopped service still has ServiceConnection objects bound to it with the
|
||||
@@ -109,7 +109,7 @@ public final class AlarmUtils {
|
||||
public static void snoozeAlarm(Context c, Alarm a) {
|
||||
a.snooze(AlarmUtils.snoozeDuration(c));
|
||||
AlarmUtils.scheduleAlarm(c, a);
|
||||
save(c); // TODO: not necessary?
|
||||
save(c);
|
||||
}
|
||||
|
||||
public static void removeUpcomingAlarmNotification(Context c, Alarm a) {
|
||||
|
||||
Reference in New Issue
Block a user