refresh CalDAV calendars only if actually enabled
This commit is contained in:
parent
2bb3e0dabe
commit
491fb95f6f
1 changed files with 4 additions and 1 deletions
|
@ -10,7 +10,10 @@ import com.simplemobiletools.calendar.pro.extensions.updateWidgets
|
|||
|
||||
class CalDAVSyncReceiver : BroadcastReceiver() {
|
||||
override fun onReceive(context: Context, intent: Intent) {
|
||||
context.refreshCalDAVCalendars(context.config.caldavSyncedCalendarIds, false)
|
||||
if (context.config.caldavSync) {
|
||||
context.refreshCalDAVCalendars(context.config.caldavSyncedCalendarIds, false)
|
||||
}
|
||||
|
||||
context.recheckCalDAVCalendars {
|
||||
context.updateWidgets()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue