mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Fixed waiting room not displaying call progress when resumed
This commit is contained in:
parent
a2bf235656
commit
3fcbc9bf28
2 changed files with 8 additions and 9 deletions
|
|
@ -151,19 +151,20 @@ class MeetingWaitingRoomFragment : GenericMainFragment() {
|
|||
override fun onResume() {
|
||||
super.onResume()
|
||||
|
||||
if (isCameraPermissionGranted()) {
|
||||
Log.i(
|
||||
"$TAG Record video permission is granted, starting video preview with front cam if possible"
|
||||
)
|
||||
viewModel.setFrontCamera()
|
||||
enableVideoPreview()
|
||||
if (viewModel.joining.value == false) {
|
||||
if (isCameraPermissionGranted()) {
|
||||
Log.i(
|
||||
"$TAG Record video permission is granted, starting video preview with front cam if possible"
|
||||
)
|
||||
viewModel.setFrontCamera()
|
||||
enableVideoPreview()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
bottomSheetDialog?.dismiss()
|
||||
bottomSheetDialog = null
|
||||
viewModel.joining.value = false
|
||||
|
||||
coreContext.postOnCoreThread { core ->
|
||||
core.nativePreviewWindowId = null
|
||||
|
|
|
|||
|
|
@ -111,12 +111,10 @@ class MeetingWaitingRoomViewModel @UiThread constructor() : GenericViewModel() {
|
|||
Log.i("$TAG Call has ended, leaving waiting room fragment")
|
||||
leaveWaitingRoomEvent.postValue(Event(true))
|
||||
}
|
||||
|
||||
Call.State.Error -> {
|
||||
Log.w("$TAG Call has failed, leaving waiting room fragment")
|
||||
leaveWaitingRoomEvent.postValue(Event(true))
|
||||
}
|
||||
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue