mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-16 10:54:43 +01:00
recheck caldav events in the background every 2 hours
This commit is contained in:
parent
cf9fa3b685
commit
3c08c4501d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user