From d9a11d83df5642000a4f616a18e463c8680339ad Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 5 Jul 2020 11:54:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E4=B8=8B=E8=BD=BDbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/service/DownloadService.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 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 2efe2985d..a7c14b119 100644 --- a/app/src/main/java/io/legado/app/service/DownloadService.kt +++ b/app/src/main/java/io/legado/app/service/DownloadService.kt @@ -93,9 +93,9 @@ class DownloadService : BaseService() { book = bookMap[bookUrl] if (book == null) { book = App.db.bookDao().getBook(bookUrl) - } - if (book == null) { - removeDownload(bookUrl) + if (book == null) { + removeDownload(bookUrl) + } } } } @@ -111,9 +111,9 @@ class DownloadService : BaseService() { App.db.bookSourceDao().getBookSource(origin)?.let { webBook = WebBook(it) } - } - if (webBook == null) { - removeDownload(bookUrl) + if (webBook == null) { + removeDownload(bookUrl) + } } } }