From 570909dc015add63e04a7334f3bbaebdfaafbc7f Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 5 Nov 2017 15:01:04 +0100 Subject: [PATCH] replace FLAG_CANCEL_CURRENT with FLAG_UPDATE_CURRENT at scheduling caldav sync --- .../kotlin/com/simplemobiletools/calendar/extensions/Context.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/extensions/Context.kt index c8f1a1b54..f59cd2953 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/extensions/Context.kt @@ -244,7 +244,7 @@ fun Context.recheckCalDAVCalendars(callback: () -> Unit) { fun Context.scheduleCalDAVSync(activate: Boolean) { val syncIntent = Intent(this, CalDAVSyncReceiver::class.java) - val pendingIntent = PendingIntent.getBroadcast(this, 0, syncIntent, PendingIntent.FLAG_CANCEL_CURRENT) + val pendingIntent = PendingIntent.getBroadcast(this, 0, syncIntent, PendingIntent.FLAG_UPDATE_CURRENT) val alarm = getSystemService(Context.ALARM_SERVICE) as AlarmManager if (activate) {