pull/52/head
kunfei 5 years ago
parent 0f455acc97
commit fe01078781
  1. 3
      app/src/main/java/io/legado/app/service/DownloadService.kt

@ -53,13 +53,12 @@ class DownloadService : BaseService() {
if (!BookHelp.hasContent(book, chapter)) { if (!BookHelp.hasContent(book, chapter)) {
webBook.getContent(book, chapter, scope = this, context = searchPool) webBook.getContent(book, chapter, scope = this, context = searchPool)
.onStart { .onStart {
updateNotification("${chapter.title}开始下载") updateNotification(chapter.title)
} }
.onSuccess { content -> .onSuccess { content ->
content?.let { content?.let {
BookHelp.saveContent(book, chapter, content) BookHelp.saveContent(book, chapter, content)
} }
updateNotification("${chapter.title}下载完成")
} }
} }
} }

Loading…
Cancel
Save