set MODE_IN_CALL audio mode right at launching the call screen
This commit is contained in:
parent
1e979e2b6e
commit
91bf451794
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue