fix saving new events with reminders

This commit is contained in:
tibbi 2018-11-12 18:52:55 +01:00
parent d0055239bd
commit ab10394122

View File

@ -779,7 +779,7 @@ class EventActivity : SimpleActivity() {
}
private fun storeEvent(wasRepeatable: Boolean) {
if (mEvent.id == 0L) {
if (mEvent.id == 0L || mEvent.id == null) {
dbHelper.insert(mEvent, true, this) {
if (DateTime.now().isAfter(mEventStartDateTime.millis)) {
if (mEvent.repeatInterval == 0 && mEvent.getReminders().isNotEmpty()) {