From fbb8d30db0a782697ed5070b0bc9306327f44070 Mon Sep 17 00:00:00 2001 From: zarzet Date: Sun, 29 Mar 2026 01:37:24 +0700 Subject: [PATCH] fix: use START_NOT_STICKY for DownloadService to prevent auto-restart Prevents Android from automatically recreating the download service after it is killed, avoiding duplicate or orphaned download processes. --- .../app/src/main/kotlin/com/zarz/spotiflac/DownloadService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app/src/main/kotlin/com/zarz/spotiflac/DownloadService.kt b/android/app/src/main/kotlin/com/zarz/spotiflac/DownloadService.kt index f05542b..c1c4822 100644 --- a/android/app/src/main/kotlin/com/zarz/spotiflac/DownloadService.kt +++ b/android/app/src/main/kotlin/com/zarz/spotiflac/DownloadService.kt @@ -104,7 +104,7 @@ class DownloadService : Service() { updateNotification(progress, total) } } - return START_STICKY + return START_NOT_STICKY } override fun onBind(intent: Intent?): IBinder? = null