优化主题

pull/310/head
gedoor 4 years ago
parent dc0e2a4c3c
commit 9be6b37917
  1. 4
      app/src/main/java/io/legado/app/ui/book/download/DownloadViewModel.kt

@ -36,12 +36,12 @@ class DownloadViewModel(application: Application) : BaseViewModel(application) {
} }
private fun export(doc: DocumentFile, book: Book) { private fun export(doc: DocumentFile, book: Book) {
DocumentUtils.createFileIfNotExist(doc, "${book.name}.txt") DocumentUtils.createFileIfNotExist(doc, "${book.name} 作者:${book.author}.txt")
?.writeText(context, getAllContents(book)) ?.writeText(context, getAllContents(book))
} }
private fun export(file: File, book: Book) { private fun export(file: File, book: Book) {
FileUtils.createFileIfNotExist(file, "${book.name}.txt") FileUtils.createFileIfNotExist(file, "${book.name} 作者:${book.author}.txt")
.writeText(getAllContents(book)) .writeText(getAllContents(book))
} }

Loading…
Cancel
Save