Fix #1385, cancel notification and pending intent if event is deleted for future occurrences
This commit is contained in:
parent
5aa35bfe7a
commit
3fcc23a320
|
@ -181,7 +181,8 @@ class EventsHelper(val context: Context) {
|
||||||
fun addEventRepeatLimit(eventId: Long, limitTS: Long) {
|
fun addEventRepeatLimit(eventId: Long, limitTS: Long) {
|
||||||
val time = Formatter.getDateTimeFromTS(limitTS)
|
val time = Formatter.getDateTimeFromTS(limitTS)
|
||||||
eventsDB.updateEventRepetitionLimit(limitTS - time.hourOfDay, eventId)
|
eventsDB.updateEventRepetitionLimit(limitTS - time.hourOfDay, eventId)
|
||||||
|
context.cancelNotification(eventId)
|
||||||
|
context.cancelPendingIntent(eventId)
|
||||||
if (config.caldavSync) {
|
if (config.caldavSync) {
|
||||||
val event = eventsDB.getEventWithId(eventId)
|
val event = eventsDB.getEventWithId(eventId)
|
||||||
if (event?.getCalDAVCalendarId() != 0) {
|
if (event?.getCalDAVCalendarId() != 0) {
|
||||||
|
|
Loading…
Reference in New Issue