feat: 优化代码

pull/178/head
kunfei 5 years ago
parent 89386ef636
commit 917ad10d43
  1. 7
      app/src/main/java/io/legado/app/service/DownloadService.kt

@ -195,8 +195,11 @@ class DownloadService : BaseService() {
} }
class DownloadCount{ class DownloadCount{
@Volatile public var downloadFinishedCount = 0 // 下载完成的条目数量 @Volatile
@Volatile public var successCount = 0 //下载成功的条目数量 var downloadFinishedCount = 0 // 下载完成的条目数量
@Volatile
var successCount = 0 //下载成功的条目数量
fun increaseSuccess(){ fun increaseSuccess(){
++successCount; ++successCount;

Loading…
Cancel
Save