mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
refresh CalDAV calendars only if actually enabled
This commit is contained in:
@ -10,7 +10,10 @@ import com.simplemobiletools.calendar.pro.extensions.updateWidgets
|
|||||||
|
|
||||||
class CalDAVSyncReceiver : BroadcastReceiver() {
|
class CalDAVSyncReceiver : BroadcastReceiver() {
|
||||||
override fun onReceive(context: Context, intent: Intent) {
|
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.recheckCalDAVCalendars {
|
||||||
context.updateWidgets()
|
context.updateWidgets()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user