- when main activity is destroyed, don't kill baresip service
This commit is contained in:
@ -829,11 +829,6 @@ class MainActivity : AppCompatActivity() {
|
||||
|
||||
override fun onDestroy() {
|
||||
Log.d("Baresip", "Destroyed")
|
||||
LocalBroadcastManager.getInstance(this).unregisterReceiver(serviceEventReceiver)
|
||||
if (BaresipService.isServiceRunning) {
|
||||
baresipService.setAction("Kill")
|
||||
startService(baresipService)
|
||||
}
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user