From 3c08c4501db4dcd26b1ffd517fb17031ce027a83 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 13 Jun 2018 20:15:09 +0200 Subject: [PATCH] recheck caldav events in the background every 2 hours --- .../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 db3aa5b79..4a0319c3c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/extensions/Context.kt @@ -311,7 +311,7 @@ fun Context.scheduleCalDAVSync(activate: Boolean) { val alarm = getSystemService(Context.ALARM_SERVICE) as AlarmManager if (activate) { - val syncCheckInterval = 4 * AlarmManager.INTERVAL_HOUR + val syncCheckInterval = 2 * AlarmManager.INTERVAL_HOUR try { alarm.setRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() + syncCheckInterval, syncCheckInterval, pendingIntent) } catch (ignored: SecurityException) {