feat: 优化

pull/209/head
kunfei 5 years ago
parent 0b179711ab
commit 3b5b5e805e
  1. 6
      app/src/main/java/io/legado/app/service/DownloadService.kt

@ -30,7 +30,7 @@ class DownloadService : BaseService() {
private val handler = Handler()
private var runnable: Runnable = Runnable { upDownload() }
private val downloadMap = hashMapOf<String, LinkedHashSet<BookChapter>>()
private val downloadCount = hashMapOf<String, DownloadCount>();
private val downloadCount = hashMapOf<String, DownloadCount>()
private val finalMap = hashMapOf<String, LinkedHashSet<BookChapter>>()
private var notificationContent = "正在启动下载"
@ -199,11 +199,11 @@ class DownloadService : BaseService() {
var successCount = 0 //下载成功的条目数量
fun increaseSuccess() {
++successCount;
++successCount
}
fun increaseFinished() {
++downloadFinishedCount;
++downloadFinishedCount
}
}
}
Loading…
Cancel
Save