This repository was archived by the owner on Dec 18, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
topl-service/src/main/java/io/matthewnelson/topl_service/lifecycle Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 6767package io.matthewnelson.topl_service.lifecycle
6868
6969import android.content.Context
70- import android.os.Process
7170import androidx.lifecycle.Lifecycle
7271import androidx.lifecycle.LifecycleObserver
7372import androidx.lifecycle.OnLifecycleEvent
@@ -77,6 +76,7 @@ import io.matthewnelson.topl_service.service.TorService
7776import io.matthewnelson.topl_service.service.components.actions.ServiceActionProcessor
7877import io.matthewnelson.topl_service.service.components.binding.TorServiceConnection
7978import io.matthewnelson.topl_service.util.ServiceConsts
79+ import kotlin.system.exitProcess
8080
8181/* *
8282 * When your application is sent to the background (the Recent App's tray or lock screen), the
@@ -290,7 +290,7 @@ class BackgroundManager internal constructor(
290290 * */
291291 internal fun killAppProcess () {
292292 if (backgroundManager.killAppIfTaskIsRemoved && taskIsRemovedFromRecentApps) {
293- Process .killProcess( Process .myPid() )
293+ exitProcess( 0 )
294294 }
295295 }
296296 }
You can’t perform that action at this time.
0 commit comments