Fix potential crash when starting IncomingMessageObserver service.

This commit is contained in:
Greyson Parrelli
2023-03-20 16:45:20 -04:00
parent 6c6d4e801f
commit 03aa6a1d61

View File

@@ -163,7 +163,7 @@ class IncomingMessageObserver(private val context: Application) {
private fun onAppForegrounded() {
lock.withLock {
appVisible = true
context.startService(Intent(context, BackgroundService::class.java))
BackgroundService.start(context)
condition.signalAll()
}
}