mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-26 08:07:42 +01:00
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)
|
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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user