Always try to stop ringtone when stopRinging is called

This commit is contained in:
Juha Heinanen
2021-10-05 16:16:11 +03:00
parent d85bd7e199
commit 660048853b
@@ -1107,7 +1107,7 @@ class BaresipService: Service() {
}
private fun stopRinging() {
if (am.mode == AudioManager.MODE_RINGTONE) {
if (am.mode == AudioManager.MODE_RINGTONE)
abandonAudioFocus()
if ((VERSION.SDK_INT < 28) && (rtTimer != null)) {
rtTimer!!.cancel()
@@ -1115,7 +1115,6 @@ class BaresipService: Service() {
}
rt.stop()
}
}
private fun setCallVolume() {
if (callVolume != 0 && origVolume == -1) {