Wrote Loader for List of Alarms

This commit is contained in:
Phillip Hsu
2016-07-03 03:49:48 -07:00
parent b1657c221e
commit 4eec10f86a
9 changed files with 229 additions and 21 deletions
@@ -241,8 +241,10 @@ public class EditAlarmActivity extends BaseActivity implements AlarmNumpad.KeyLi
Log.d(TAG, "Cancelling old alarm first");
cancelAlarm(mOldAlarm, false);
}
// TODO: Do this in the background. AsyncTask?
mDatabaseManager.updateAlarm(mOldAlarm.id(), alarm);
} else {
// TODO: Do this in the background. AsyncTask?
mDatabaseManager.insertAlarm(alarm);
}