Apply volume keys to ringtone volume when call is coming in and to in-call volume during call

This commit is contained in:
Juha Heinanen
2025-05-19 11:51:58 +03:00
parent 9c302d14ae
commit 0dc790e4c1
2 changed files with 3 additions and 1 deletions
@@ -518,6 +518,7 @@ class BaresipService: Service() {
val vidMode = intent.getIntExtra("video", Api.VIDMODE_OFF)
stopRinging()
stopMediaPlayer()
am.mode = MODE_IN_COMMUNICATION
setCallVolume()
proximitySensing(true)
Api.ua_answer(uap, callp, vidMode)
@@ -1304,6 +1305,7 @@ class BaresipService: Service() {
}
private fun startRinging() {
am.mode = AudioManager.MODE_RINGTONE
rt!!.isLooping = true
rt!!.play()
if (shouldVibrate()) {