try updating the widgets after the background caldav syncing
This commit is contained in:
parent
4cdce5f152
commit
3114e0bb6e
|
@ -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()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue