reschedule every notification at receiving one to be sure, its cheap

This commit is contained in:
tibbi 2017-04-23 23:01:12 +02:00
parent 9735bcf0c0
commit f559577d90
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import android.content.Context
import android.content.Intent
import com.simplemobiletools.calendar.extensions.dbHelper
import com.simplemobiletools.calendar.extensions.notifyEvent
import com.simplemobiletools.calendar.extensions.scheduleNextEventReminder
import com.simplemobiletools.calendar.extensions.scheduleAllEvents
import com.simplemobiletools.calendar.extensions.updateListWidget
import com.simplemobiletools.calendar.helpers.EVENT_ID
import com.simplemobiletools.calendar.helpers.Formatter
@ -24,6 +24,6 @@ class NotificationReceiver : BroadcastReceiver() {
if (!event.ignoreEventOccurrences.contains(Formatter.getDayCodeFromTS(event.startTS).toInt())) {
context.notifyEvent(event)
}
context.scheduleNextEventReminder(event)
context.scheduleAllEvents()
}
}