mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
Remove disconnected calls manually
A single disconnected but not removed call can cause false in-call state with in the app causing CallActivity to finish instantly even when there are no real active calls.
This commit is contained in:
@ -109,6 +109,9 @@ class CallManager {
|
||||
listener.onStateChanged()
|
||||
}
|
||||
}
|
||||
|
||||
// remove all disconnected calls manually in case they are still here
|
||||
calls.removeAll { it.getStateCompat() == Call.STATE_DISCONNECTED }
|
||||
}
|
||||
|
||||
fun getPrimaryCall(): Call? {
|
||||
|
Reference in New Issue
Block a user