Good catch. I moved if (changed) { alarm.save(); } into the else branch above, but kept the changed flag.

That way we don't save twice when the true branch is called. Is that ok with you? 

```javascript
    } else {                               
      if (changed) {
        alarm.save();
      }
      AlarmManager.updateAlarmStatusBar();                  
    }
```