replace FLAG_CANCEL_CURRENT with FLAG_UPDATE_CURRENT at scheduling caldav sync

This commit is contained in:
tibbi 2017-11-05 15:01:04 +01:00
parent 256bd389d0
commit 570909dc01
1 changed files with 1 additions and 1 deletions

View File

@ -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) {