mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
fix saving new events with reminders
This commit is contained in:
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user