diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/receivers/BootCompletedReceiver.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/receivers/BootCompletedReceiver.kt index 96c163240..d6aec0c36 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/receivers/BootCompletedReceiver.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/receivers/BootCompletedReceiver.kt @@ -9,11 +9,13 @@ import com.simplemobiletools.calendar.extensions.scheduleAllEvents class BootCompletedReceiver : BroadcastReceiver() { - override fun onReceive(context: Context, arg1: Intent) { - context.apply { - scheduleAllEvents() - notifyRunningEvents() - recheckCalDAVCalendars {} - } + override fun onReceive(context: Context, intent: Intent) { + Thread { + context.apply { + scheduleAllEvents() + notifyRunningEvents() + recheckCalDAVCalendars {} + } + }.start() } }