@qusaieilouti99/call-manager 0.1.111 → 0.1.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -440,10 +440,8 @@ object CallEngine {
|
|
|
440
440
|
keepScreenAwake(true)
|
|
441
441
|
updateLockScreenBypass()
|
|
442
442
|
|
|
443
|
-
// before you do anything else:
|
|
444
|
-
setAudioMode()
|
|
445
443
|
// then pick your route:
|
|
446
|
-
setInitialAudioRoute(callType)
|
|
444
|
+
setInitialAudioRoute(callInfo.callType)
|
|
447
445
|
|
|
448
446
|
if (isLocalAnswer) {
|
|
449
447
|
emitCallAnsweredWithMetadata(callId)
|
|
@@ -737,6 +735,7 @@ object CallEngine {
|
|
|
737
735
|
audioManager = ctx.getSystemService(Context.AUDIO_SERVICE) as AudioManager
|
|
738
736
|
}
|
|
739
737
|
val am = audioManager!!
|
|
738
|
+
setAudioMode()
|
|
740
739
|
|
|
741
740
|
when (route) {
|
|
742
741
|
"Speaker" -> {
|