- Fixed toggling of speakerphone in API < 31 devices

- Removed hasCallbacks check
This commit is contained in:
Juha Heinanen
2023-01-25 05:34:03 +02:00
parent 8282faeb17
commit 95589ec80f
3 changed files with 10 additions and 16 deletions
@@ -107,14 +107,8 @@ class Call(val callp: Long, val ua: UserAgent, val peerUri: String, val dir: Str
}
fun call(status: String): Call? {
for (c in BaresipService.calls)
if (c.status == status) return c
return null
}
fun connectedCall(): Call? {
for (c in BaresipService.calls.reversed())
if (c.status == "connected") return c
if (c.status == status) return c
return null
}