From 2349ea3de4ee8e03b36604b73f42ac713b3d507b Mon Sep 17 00:00:00 2001 From: gedoor Date: Thu, 23 Sep 2021 22:47:16 +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, 3 insertions(+), 1 deletion(-) 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 6b870bc08..bd0bd94b4 100644 --- a/app/src/main/java/io/legado/app/service/DownloadService.kt +++ b/app/src/main/java/io/legado/app/service/DownloadService.kt @@ -76,7 +76,9 @@ class DownloadService : BaseService() { if (downloadId > 0) { downloads[downloadId] = fileName queryState() - checkDownloadState() + if (upStateJob == null) { + checkDownloadState() + } } }