try updating the widgets after the background caldav syncing

This commit is contained in:
tibbi 2018-10-23 21:18:25 +02:00
parent 4cdce5f152
commit 3114e0bb6e
1 changed files with 4 additions and 1 deletions

View File

@ -4,9 +4,12 @@ import android.content.BroadcastReceiver
import android.content.Context import android.content.Context
import android.content.Intent import android.content.Intent
import com.simplemobiletools.calendar.extensions.recheckCalDAVCalendars import com.simplemobiletools.calendar.extensions.recheckCalDAVCalendars
import com.simplemobiletools.calendar.extensions.updateWidgets
class CalDAVSyncReceiver : BroadcastReceiver() { class CalDAVSyncReceiver : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) { override fun onReceive(context: Context, intent: Intent) {
context.recheckCalDAVCalendars {} context.recheckCalDAVCalendars {
context.updateWidgets()
}
} }
} }