@qusaieilouti99/call-manager 0.1.85 → 0.1.86
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.
package/android/src/main/java/com/margelo/nitro/qusaieilouti99/callmanager/CallForegroundService.kt
CHANGED
|
@@ -41,7 +41,7 @@ class CallForegroundService : Service() {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
startForeground(NOTIFICATION_ID, notification)
|
|
44
|
-
return
|
|
44
|
+
return START_NOT_STICKY
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
override fun onBind(intent: Intent?): IBinder? = null
|
|
@@ -155,6 +155,9 @@ class CallForegroundService : Service() {
|
|
|
155
155
|
if (removed != CallActivity::class.java.name) {
|
|
156
156
|
Log.d(TAG, "Main app task removed - terminating")
|
|
157
157
|
CallEngine.onApplicationTerminate()
|
|
158
|
+
|
|
159
|
+
// Force kill the process (nuclear option)
|
|
160
|
+
android.os.Process.killProcess(android.os.Process.myPid())
|
|
158
161
|
}
|
|
159
162
|
|
|
160
163
|
super.onTaskRemoved(rootIntent)
|