diff options
author | bunnei <bunneidev@gmail.com> | 2023-06-01 03:17:21 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2023-06-03 09:06:06 +0200 |
commit | 9ca8687b5f2be77eecc00855391f44623b841d15 (patch) | |
tree | aa66c029db1544e6907578e88d2ad6d9b4961127 /src/android/app | |
parent | android: ImportExportSavesFragment: Cleanup strings. (diff) | |
download | yuzu-9ca8687b5f2be77eecc00855391f44623b841d15.tar yuzu-9ca8687b5f2be77eecc00855391f44623b841d15.tar.gz yuzu-9ca8687b5f2be77eecc00855391f44623b841d15.tar.bz2 yuzu-9ca8687b5f2be77eecc00855391f44623b841d15.tar.lz yuzu-9ca8687b5f2be77eecc00855391f44623b841d15.tar.xz yuzu-9ca8687b5f2be77eecc00855391f44623b841d15.tar.zst yuzu-9ca8687b5f2be77eecc00855391f44623b841d15.zip |
Diffstat (limited to 'src/android/app')
-rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ForegroundService.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ForegroundService.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ForegroundService.kt index 626123966..dc9b7c744 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ForegroundService.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/utils/ForegroundService.kt @@ -52,7 +52,10 @@ class ForegroundService : Service() { showRunningNotification() } - override fun onStartCommand(intent: Intent, flags: Int, startId: Int): Int { + override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int { + if (intent == null) { + return START_NOT_STICKY; + } if (intent.action == ACTION_STOP) { NotificationManagerCompat.from(this).cancel(EMULATION_RUNNING_NOTIFICATION) stopForeground(STOP_FOREGROUND_REMOVE) |