From 03bc45ee9a1d6db87b4679d70aab74481e170d63 Mon Sep 17 00:00:00 2001 From: gedoor Date: Tue, 29 Sep 2020 10:53:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/service/DownloadService.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/io/legado/app/service/DownloadService.kt b/app/src/main/java/io/legado/app/service/DownloadService.kt index 53868a977..b9f4f82fe 100644 --- a/app/src/main/java/io/legado/app/service/DownloadService.kt +++ b/app/src/main/java/io/legado/app/service/DownloadService.kt @@ -69,9 +69,7 @@ class DownloadService : BaseService() { IntentAction.stop -> { val downloadId = intent.getLongExtra("downloadId", 0) downloads.remove(downloadId) - if (downloads.isEmpty()) { - stopSelf() - } + stopSelf() } } return super.onStartCommand(intent, flags, startId)