recheck caldav events in the background every 2 hours

This commit is contained in:
tibbi 2018-06-13 20:15:09 +02:00
parent cf9fa3b685
commit 3c08c4501d

View File

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