@qusaieilouti99/call-manager 0.1.23 → 0.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -114,9 +114,16 @@ object CallEngine {
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
fun endAllCalls(context: Context) {
|
|
117
|
-
|
|
117
|
+
if (activeCalls.isEmpty()) {
|
|
118
|
+
Log.d(TAG, "endAllCalls: No active calls, nothing to do.")
|
|
119
|
+
return
|
|
120
|
+
}
|
|
121
|
+
Log.d(TAG, "endAllCalls: Ending all active calls.")
|
|
118
122
|
activeCalls.keys.toList().forEach { endCall(context, it) }
|
|
123
|
+
activeCalls.clear()
|
|
119
124
|
currentCallId = null
|
|
125
|
+
cancelIncomingCallUI(context)
|
|
126
|
+
stopForegroundService(context)
|
|
120
127
|
notifyCallStateChanged(context)
|
|
121
128
|
}
|
|
122
129
|
|