mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-10-11 01:47:00 +01:00
Fix potential crash when starting IncomingMessageObserver service.
This commit is contained in:
1 parent
6c6d4e801f
commit
03aa6a1d61
1 file changed
+1
-1
@@ -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