Fix crash when resuming the call from the notification. Fixes #3905

This commit is contained in:
Benoit Marty
2024-11-22 10:36:35 +01:00
parent 5a6525ab16
commit d57758432e
@@ -200,12 +200,14 @@ class ElementCallActivity :
Timber.tag(loggerTag.value).d("Set the call type and create the presenter") Timber.tag(loggerTag.value).d("Set the call type and create the presenter")
webViewTarget.value = callType webViewTarget.value = callType
presenter = presenterFactory.create(callType!!, this) presenter = presenterFactory.create(callType!!, this)
} else if (callType == null) {
Timber.tag(loggerTag.value).d("Coming back from notification, do nothing")
} else if (callType != currentCallType) { } else if (callType != currentCallType) {
Timber.tag(loggerTag.value).d("User starts another call, restart the Activity") Timber.tag(loggerTag.value).d("User starts another call, restart the Activity")
setIntent(intent) setIntent(intent)
recreate() recreate()
} else { } else {
Timber.tag(loggerTag.value).d("Coming back from notification, do nothing") Timber.tag(loggerTag.value).d("Other case, do nothing")
} }
} }