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

View File

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