feat: 优化代码

pull/182/head
kunfei 5 years ago
parent 06efe4d287
commit 9711ca0a51
  1. 2
      app/src/main/java/io/legado/app/service/CheckSourceService.kt

@ -102,7 +102,7 @@ class CheckSourceService : BaseService() {
checkedIds.size,
getString(R.string.progress_show, checkedIds.size, allIds.size)
)
if (processIndex >= allIds.size + threadCount - 1) {
if (processIndex >= allIds.size + min(threadCount, allIds.size) - 1) {
stopSelf()
}
}

Loading…
Cancel
Save