mirror of
				https://github.com/SimpleMobileTools/Simple-Calendar.git
				synced 2025-06-05 21:59:17 +02:00 
			
		
		
		
	Merge pull request #1393 from tanvir-ahmod/fix_1385
Fix #1385, cancel notification and pending intent if event is deleted
This commit is contained in:
		| @@ -181,7 +181,8 @@ class EventsHelper(val context: Context) { | ||||
|     fun addEventRepeatLimit(eventId: Long, limitTS: Long) { | ||||
|         val time = Formatter.getDateTimeFromTS(limitTS) | ||||
|         eventsDB.updateEventRepetitionLimit(limitTS - time.hourOfDay, eventId) | ||||
|  | ||||
|         context.cancelNotification(eventId) | ||||
|         context.cancelPendingIntent(eventId) | ||||
|         if (config.caldavSync) { | ||||
|             val event = eventsDB.getEventWithId(eventId) | ||||
|             if (event?.getCalDAVCalendarId() != 0) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user