replace FLAG_CANCEL_CURRENT with FLAG_UPDATE_CURRENT at scheduling caldav sync
This commit is contained in:
parent
256bd389d0
commit
570909dc01
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue