pull/1319/head
gedoor 3 years ago
parent 9aecda768d
commit a006d667f5
  1. 6
      app/src/main/java/io/legado/app/model/CacheBook.kt

@ -78,7 +78,7 @@ class CacheBook(var bookSource: BookSource, var book: Book) {
} }
val downloadSummary = val downloadSummary =
"正在下载:${onDownloadCount}|等待中:${waitDownloadCount}|失败:${errorCount}|成功:${successDownloadCount}" "正在下载:${onDownloadCount}|等待中:${waitCount}|失败:${errorCount}|成功:${successCount}"
val isRun: Boolean val isRun: Boolean
get() { get() {
@ -89,7 +89,7 @@ class CacheBook(var bookSource: BookSource, var book: Book) {
return isRun return isRun
} }
private val waitDownloadCount: Int private val waitCount: Int
get() { get() {
var count = 0 var count = 0
cacheBookMap.forEach { cacheBookMap.forEach {
@ -98,7 +98,7 @@ class CacheBook(var bookSource: BookSource, var book: Book) {
return count return count
} }
private val successDownloadCount: Int private val successCount: Int
get() { get() {
var count = 0 var count = 0
cacheBookMap.forEach { cacheBookMap.forEach {

Loading…
Cancel
Save