Prevent back button/gesture while in outgoing/incoming call fragments to go to active call fragment
This commit is contained in:
parent
30d6e556c1
commit
820d0f1e5a
2 changed files with 3 additions and 3 deletions
|
@ -861,7 +861,7 @@ internal fun CallActivity.navigateToOutgoingCall() {
|
|||
findNavController(R.id.nav_host_fragment).navigate(
|
||||
R.id.action_global_outgoingCallFragment,
|
||||
null,
|
||||
popupTo(R.id.outgoingCallFragment, true)
|
||||
popupTo(R.id.singleCallFragment, true)
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -871,7 +871,7 @@ internal fun CallActivity.navigateToIncomingCall(earlyMediaVideoEnabled: Boolean
|
|||
findNavController(R.id.nav_host_fragment).navigate(
|
||||
R.id.action_global_incomingCallFragment,
|
||||
args,
|
||||
popupTo(R.id.incomingCallFragment, true)
|
||||
popupTo(R.id.singleCallFragment, true)
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -418,7 +418,7 @@ class ControlsViewModel : ViewModel() {
|
|||
}
|
||||
|
||||
private fun updateVideoEnabled() {
|
||||
val currentCall = coreContext.core.currentCall
|
||||
val currentCall = coreContext.core.currentCall ?: coreContext.core.calls.firstOrNull()
|
||||
val enabled = currentCall?.currentParams?.isVideoEnabled ?: false
|
||||
// Prevent speaker to turn on each time a participant joins a video conference
|
||||
val isConference = currentCall?.conference != null
|
||||
|
|
Loading…
Reference in a new issue