mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-27 14:40:22 +00:00
Fix potential crash when starting IncomingMessageObserver service.
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user