From 91bf4517940226574e70e0a2ee2552a2d780ca5e Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 3 May 2020 09:38:44 +0200 Subject: [PATCH] set MODE_IN_CALL audio mode right at launching the call screen --- .../simplemobiletools/contacts/pro/activities/CallActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/CallActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/CallActivity.kt index 356a3c10..531db03d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/CallActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/CallActivity.kt @@ -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) }