mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
use a background thread for scheduling things after boot
This commit is contained in:
@@ -9,11 +9,13 @@ import com.simplemobiletools.calendar.extensions.scheduleAllEvents
|
||||
|
||||
class BootCompletedReceiver : BroadcastReceiver() {
|
||||
|
||||
override fun onReceive(context: Context, arg1: Intent) {
|
||||
override fun onReceive(context: Context, intent: Intent) {
|
||||
Thread {
|
||||
context.apply {
|
||||
scheduleAllEvents()
|
||||
notifyRunningEvents()
|
||||
recheckCalDAVCalendars {}
|
||||
}
|
||||
}.start()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user