mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Hide audio route selection view when clicked outsize
This commit is contained in:
parent
e8c2e92fc9
commit
05b905a3f1
3 changed files with 10 additions and 0 deletions
|
|
@ -92,6 +92,7 @@ class ControlsViewModel {
|
|||
ConferenceViewModel.shared.conferenceDisplayMode.readCurrentAndObserve { _ in
|
||||
self.updateVideoAvailable()
|
||||
}
|
||||
self.isBluetoothHeadsetAvailable.value = !core.audioDevices.filter { [.Bluetooth,.BluetoothA2DP].contains($0.type)}.isEmpty
|
||||
}
|
||||
|
||||
private func setAudioRoutes(_ call:Call,_ state:Call.State) {
|
||||
|
|
@ -229,6 +230,7 @@ class ControlsViewModel {
|
|||
}
|
||||
|
||||
func toggleFullScreen() {
|
||||
ControlsViewModel.shared.audioRoutesSelected.value = false
|
||||
fullScreenMode.value = fullScreenMode.value != true
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -127,6 +127,11 @@ import linphonesw
|
|||
VoipDialog.toast(message: VoipTexts.conference_first_to_join)
|
||||
}
|
||||
}
|
||||
|
||||
view.onClick {
|
||||
ControlsViewModel.shared.audioRoutesSelected.value = false
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func displaySelectedConferenceLayout() {
|
||||
|
|
|
|||
|
|
@ -92,6 +92,9 @@ import linphonesw
|
|||
}
|
||||
}
|
||||
}
|
||||
view.onClick {
|
||||
ControlsViewModel.shared.audioRoutesSelected.value = false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue