mirror of
https://github.com/PabloMK7/citra.git
synced 2025-01-31 08:13:05 +01:00
android: Disable foreground service
This commit is contained in:
parent
ffe0632608
commit
0cc094e7c8
1 changed files with 3 additions and 3 deletions
|
@ -86,8 +86,8 @@ class EmulationActivity : AppCompatActivity() {
|
|||
)
|
||||
|
||||
// Start a foreground service to prevent the app from getting killed in the background
|
||||
foregroundService = Intent(this, ForegroundService::class.java)
|
||||
startForegroundService(foregroundService)
|
||||
//foregroundService = Intent(this, ForegroundService::class.java)
|
||||
//startForegroundService(foregroundService)
|
||||
|
||||
EmulationLifecycleUtil.addShutdownHook(hook = { this.finish() })
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ class EmulationActivity : AppCompatActivity() {
|
|||
|
||||
override fun onDestroy() {
|
||||
EmulationLifecycleUtil.clear()
|
||||
stopForegroundService(this)
|
||||
//stopForegroundService(this)
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue