mirror of
https://github.com/spotiflacapp/SpotiFLAC-Mobile.git
synced 2026-06-01 03:15:17 +07:00
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.
This commit is contained in:
parent
c0637006af
commit
fbb8d30db0
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ class DownloadService : Service() {
|
|||
updateNotification(progress, total)
|
||||
}
|
||||
}
|
||||
return START_STICKY
|
||||
return START_NOT_STICKY
|
||||
}
|
||||
|
||||
override fun onBind(intent: Intent?): IBinder? = null
|
||||
|
|
|
|||
Loading…
Reference in a new issue