pull/83/head
kunfei 5 years ago
parent 42b7c6d771
commit cf8f5e1811
  1. 8
      app/src/main/java/io/legado/app/help/BookHelp.kt

@ -135,11 +135,15 @@ object BookHelp {
?.uri?.readText(App.INSTANCE)
}
} else {
return FileUtils.createFileIfNotExist(
val path = FileUtils.getPath(
File(downloadPath),
"${bookChapterName(bookChapter)}.nb",
subDirs = *arrayOf(cacheFolderName, bookFolderName(book))
).readText()
)
val file = File(path)
if (file.exists()) {
return file.readText()
}
}
return null
}

Loading…
Cancel
Save