mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2024-12-24 15:31:05 +01:00
fix saving new events with reminders
This commit is contained in:
parent
d0055239bd
commit
ab10394122
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user