From 0cc094e7c8841e979851db744624ecf2f7758370 Mon Sep 17 00:00:00 2001 From: GPUCode Date: Sat, 6 Apr 2024 12:40:48 +0300 Subject: [PATCH] android: Disable foreground service --- .../org/citra/citra_emu/activities/EmulationActivity.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/android/app/src/main/java/org/citra/citra_emu/activities/EmulationActivity.kt b/src/android/app/src/main/java/org/citra/citra_emu/activities/EmulationActivity.kt index a911b0c31..73119ad39 100644 --- a/src/android/app/src/main/java/org/citra/citra_emu/activities/EmulationActivity.kt +++ b/src/android/app/src/main/java/org/citra/citra_emu/activities/EmulationActivity.kt @@ -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() }