From a006d667f573280038c64d1fcc8e0622d7db5e53 Mon Sep 17 00:00:00 2001 From: gedoor Date: Fri, 10 Sep 2021 13:56:26 +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/model/CacheBook.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/legado/app/model/CacheBook.kt b/app/src/main/java/io/legado/app/model/CacheBook.kt index 139b5c606..a7f4517a8 100644 --- a/app/src/main/java/io/legado/app/model/CacheBook.kt +++ b/app/src/main/java/io/legado/app/model/CacheBook.kt @@ -78,7 +78,7 @@ class CacheBook(var bookSource: BookSource, var book: Book) { } val downloadSummary = - "正在下载:${onDownloadCount}|等待中:${waitDownloadCount}|失败:${errorCount}|成功:${successDownloadCount}" + "正在下载:${onDownloadCount}|等待中:${waitCount}|失败:${errorCount}|成功:${successCount}" val isRun: Boolean get() { @@ -89,7 +89,7 @@ class CacheBook(var bookSource: BookSource, var book: Book) { return isRun } - private val waitDownloadCount: Int + private val waitCount: Int get() { var count = 0 cacheBookMap.forEach { @@ -98,7 +98,7 @@ class CacheBook(var bookSource: BookSource, var book: Book) { return count } - private val successDownloadCount: Int + private val successCount: Int get() { var count = 0 cacheBookMap.forEach {