Changes requested by BillCarsonFs review. Thanks for the comments!
This commit is contained in:
parent
42fc47685c
commit
aa2a24e68a
|
@ -95,7 +95,7 @@ class CallAudioManager(
|
||||||
Timber.v("## VOIP: AudioManager startForCall ${mxCall.callId}")
|
Timber.v("## VOIP: AudioManager startForCall ${mxCall.callId}")
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setupAudioManager(mxCall: MxCall) {
|
private fun setupAudioManager(mxCall: MxCall) {
|
||||||
Timber.v("## VOIP: AudioManager setupAudioManager ${mxCall.callId}")
|
Timber.v("## VOIP: AudioManager setupAudioManager ${mxCall.callId}")
|
||||||
val audioManager = audioManager ?: return
|
val audioManager = audioManager ?: return
|
||||||
savedIsSpeakerPhoneOn = audioManager.isSpeakerphoneOn
|
savedIsSpeakerPhoneOn = audioManager.isSpeakerphoneOn
|
||||||
|
@ -155,7 +155,6 @@ class CallAudioManager(
|
||||||
fun onCallConnected(mxCall: MxCall) {
|
fun onCallConnected(mxCall: MxCall) {
|
||||||
Timber.v("##VOIP: AudioManager call answered, adjusting current sound device")
|
Timber.v("##VOIP: AudioManager call answered, adjusting current sound device")
|
||||||
setupAudioManager(mxCall)
|
setupAudioManager(mxCall)
|
||||||
adjustCurrentSoundDevice(mxCall)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getAvailableSoundDevices(): List<SoundDevice> {
|
fun getAvailableSoundDevices(): List<SoundDevice> {
|
||||||
|
|
Loading…
Reference in New Issue