Fixed audio routes selected button not updated after change

This commit is contained in:
Sylvain Berfini 2022-03-01 11:28:55 +01:00
parent fc3d752497
commit 00d7f93094

View file

@ -293,14 +293,20 @@ class ControlsViewModel : ViewModel() {
} else {
AudioRouteUtils.routeAudioToEarpiece()
}
updateSpeakerState()
updateBluetoothHeadsetState()
}
fun forceSpeakerAudioRoute() {
AudioRouteUtils.routeAudioToSpeaker()
updateSpeakerState()
updateBluetoothHeadsetState()
}
fun forceBluetoothAudioRoute() {
AudioRouteUtils.routeAudioToBluetooth()
updateSpeakerState()
updateBluetoothHeadsetState()
}
fun toggleVideo() {