Always try to stop ringtone when stopRinging is called
This commit is contained in:
@@ -1107,7 +1107,7 @@ class BaresipService: Service() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun stopRinging() {
|
private fun stopRinging() {
|
||||||
if (am.mode == AudioManager.MODE_RINGTONE) {
|
if (am.mode == AudioManager.MODE_RINGTONE)
|
||||||
abandonAudioFocus()
|
abandonAudioFocus()
|
||||||
if ((VERSION.SDK_INT < 28) && (rtTimer != null)) {
|
if ((VERSION.SDK_INT < 28) && (rtTimer != null)) {
|
||||||
rtTimer!!.cancel()
|
rtTimer!!.cancel()
|
||||||
@@ -1115,7 +1115,6 @@ class BaresipService: Service() {
|
|||||||
}
|
}
|
||||||
rt.stop()
|
rt.stop()
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private fun setCallVolume() {
|
private fun setCallVolume() {
|
||||||
if (callVolume != 0 && origVolume == -1) {
|
if (callVolume != 0 && origVolume == -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user