mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Fix crash when resuming the call from the notification. Fixes #3905
This commit is contained in:
+3
-1
@@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user