|
|
|
@ -69,11 +69,9 @@ class DownloadService : BaseService() { |
|
|
|
|
IntentAction.stop -> { |
|
|
|
|
val downloadId = intent.getLongExtra("downloadId", 0) |
|
|
|
|
downloads.remove(downloadId) |
|
|
|
|
if (downloads.isEmpty()) { |
|
|
|
|
stopSelf() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return super.onStartCommand(intent, flags, startId) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|