mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-02 19:57:15 +01:00
refresh CalDAV calendars only if actually enabled
This commit is contained in:
parent
2bb3e0dabe
commit
491fb95f6f
@ -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…
x
Reference in New Issue
Block a user