@qusaieilouti99/call-manager 0.1.74 → 0.1.75

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.
@@ -602,6 +602,17 @@ object CallEngine {
602
602
  currentCallId = activeCalls.filter { it.value.state != CallState.ENDED }.keys.firstOrNull()
603
603
  }
604
604
 
605
+ // NEW: Send broadcast to close CallActivity
606
+ val context = requireContext()
607
+ val closeActivityIntent = Intent("com.qusaieilouti99.callmanager.CLOSE_CALL_ACTIVITY")
608
+ closeActivityIntent.putExtra("callId", callId)
609
+ try {
610
+ context.sendBroadcast(closeActivityIntent)
611
+ Log.d(TAG, "Sent close broadcast for CallActivity: $callId")
612
+ } catch (e: Exception) {
613
+ Log.w(TAG, "Failed to send close broadcast: ${e.message}")
614
+ }
615
+
605
616
  val connection = telecomConnections[callId]
606
617
  if (connection != null) {
607
618
  connection.setDisconnected(DisconnectCause(DisconnectCause.LOCAL))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qusaieilouti99/call-manager",
3
- "version": "0.1.74",
3
+ "version": "0.1.75",
4
4
  "description": "Call manager",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",