You've already forked element-android
mirror of
https://github.com/vector-im/element-android.git
synced 2025-08-07 14:42:55 +03:00
#8964 Adds a callState null check before starting the MicrophoneAccessService
This commit is contained in:
@@ -253,7 +253,7 @@ class VectorCallActivity :
|
|||||||
// already been answered before starting the MicrophoneAccessService
|
// already been answered before starting the MicrophoneAccessService
|
||||||
// https://github.com/element-hq/element-android/issues/8964
|
// https://github.com/element-hq/element-android/issues/8964
|
||||||
val callState = it.callState.invoke()
|
val callState = it.callState.invoke()
|
||||||
if (callState !is CallState.LocalRinging && callState !is CallState.Ended) {
|
if (callState !is CallState.LocalRinging && callState !is CallState.Ended && callState != null) {
|
||||||
Timber.tag(loggerTag.value).v("Starting microphone foreground service")
|
Timber.tag(loggerTag.value).v("Starting microphone foreground service")
|
||||||
val intent = Intent(this, MicrophoneAccessService::class.java)
|
val intent = Intent(this, MicrophoneAccessService::class.java)
|
||||||
ContextCompat.startForegroundService(this, intent)
|
ContextCompat.startForegroundService(this, intent)
|
||||||
|
Reference in New Issue
Block a user