From 3114e0bb6e2d3437da08051e0a7c835b5725fb79 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 23 Oct 2018 21:18:25 +0200 Subject: [PATCH] try updating the widgets after the background caldav syncing --- .../calendar/receivers/CalDAVSyncReceiver.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/receivers/CalDAVSyncReceiver.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/receivers/CalDAVSyncReceiver.kt index 1bc2cbb96..f30cbe17c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/receivers/CalDAVSyncReceiver.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/receivers/CalDAVSyncReceiver.kt @@ -4,9 +4,12 @@ import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import com.simplemobiletools.calendar.extensions.recheckCalDAVCalendars +import com.simplemobiletools.calendar.extensions.updateWidgets class CalDAVSyncReceiver : BroadcastReceiver() { override fun onReceive(context: Context, intent: Intent) { - context.recheckCalDAVCalendars {} + context.recheckCalDAVCalendars { + context.updateWidgets() + } } }