pull/84/head
kunfei 5 years ago
parent 46d9acbf03
commit a2a0c03d53
  1. 2
      app/src/main/java/io/legado/app/help/BookHelp.kt

@ -128,7 +128,7 @@ object BookHelp {
fun getContent(book: Book, bookChapter: BookChapter): String? { fun getContent(book: Book, bookChapter: BookChapter): String? {
if (book.isLocalBook()) { if (book.isLocalBook()) {
AnalyzeTxtFile.getContent(book, bookChapter) return AnalyzeTxtFile.getContent(book, bookChapter)
} else if (downloadUri.isDocumentUri(App.INSTANCE)) { } else if (downloadUri.isDocumentUri(App.INSTANCE)) {
DocumentFile.fromTreeUri(App.INSTANCE, downloadUri)?.let { root -> DocumentFile.fromTreeUri(App.INSTANCE, downloadUri)?.let { root ->
return DocumentUtils.getDirDocument( return DocumentUtils.getDirDocument(

Loading…
Cancel
Save