小说阅读接口 优化

添加 epub 未完成
pull/274/head
gedoor 4 years ago
parent 1d63b44bef
commit 390d8709f5
  1. 4
      app/src/main/java/io/legado/app/model/localBook/EPUBFile.kt

@ -22,7 +22,7 @@ class EPUBFile(val book: io.legado.app.data.entities.Book) {
@Synchronized
fun getEFile(book: io.legado.app.data.entities.Book): EPUBFile {
if (eFile == null || eFile?.book?.bookUrl == book.bookUrl) {
if (eFile == null || eFile?.book?.bookUrl != book.bookUrl) {
eFile = EPUBFile(book)
return eFile!!
}
@ -39,7 +39,7 @@ class EPUBFile(val book: io.legado.app.data.entities.Book) {
}
private var epubBook: Book? = null
private lateinit var mCharset: Charset
private var mCharset: Charset = Charset.defaultCharset()
init {
try {

Loading…
Cancel
Save