Always try to stop ringtone when stopRinging is called
This commit is contained in:
@@ -1107,14 +1107,13 @@ 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()
|
||||
rtTimer = null
|
||||
}
|
||||
rt.stop()
|
||||
if ((VERSION.SDK_INT < 28) && (rtTimer != null)) {
|
||||
rtTimer!!.cancel()
|
||||
rtTimer = null
|
||||
}
|
||||
rt.stop()
|
||||
}
|
||||
|
||||
private fun setCallVolume() {
|
||||
|
||||
Reference in New Issue
Block a user