set MODE_IN_CALL audio mode right at launching the call screen

This commit is contained in:
tibbi 2020-05-03 09:38:44 +02:00
parent 1e979e2b6e
commit 91bf451794
1 changed files with 1 additions and 1 deletions

View File

@ -55,6 +55,7 @@ class CallActivity : SimpleActivity() {
updateTextColors(call_holder)
initButtons()
audioManager.mode = AudioManager.MODE_IN_CALL
callContact = CallManager.getCallContact(applicationContext)
callContactAvatar = getCallContactAvatar()
addLockScreenFlags()
@ -222,7 +223,6 @@ class CallActivity : SimpleActivity() {
private fun callStarted() {
incoming_call_holder.beGone()
ongoing_call_holder.beVisible()
audioManager.mode = AudioManager.MODE_IN_CALL
callTimer.scheduleAtFixedRate(getCallTimerUpdateTask(), 1000, 1000)
}