Play auto-answer sound when auto-answering

This commit is contained in:
Juha Heinanen
2021-05-24 15:16:10 +03:00
parent 9e293202a4
commit 9f4c8a7fb0
3 changed files with 3 additions and 1 deletions
@@ -545,6 +545,8 @@ class BaresipService: Service() {
startRinging()
}
} else {
val mediaPlayer = MediaPlayer.create(this, R.raw.autoanswer)
mediaPlayer.start()
val newIntent = Intent(this, MainActivity::class.java)
newIntent.flags = Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP or
Intent.FLAG_ACTIVITY_NEW_TASK