|
|
@ -1,7 +1,6 @@ |
|
|
|
package io.legado.app.ui.book.cache |
|
|
|
package io.legado.app.ui.book.cache |
|
|
|
|
|
|
|
|
|
|
|
import android.app.Application |
|
|
|
import android.app.Application |
|
|
|
import android.content.Context |
|
|
|
|
|
|
|
import android.graphics.Bitmap |
|
|
|
import android.graphics.Bitmap |
|
|
|
import android.graphics.drawable.Drawable |
|
|
|
import android.graphics.drawable.Drawable |
|
|
|
import android.net.Uri |
|
|
|
import android.net.Uri |
|
|
@ -239,6 +238,8 @@ class CacheViewModel(application: Application) : BaseViewModel(application) { |
|
|
|
val content1 = contentProcessor |
|
|
|
val content1 = contentProcessor |
|
|
|
.getContent(book, chapter.title, content ?: "null", false, useReplace) |
|
|
|
.getContent(book, chapter.title, content ?: "null", false, useReplace) |
|
|
|
.joinToString("\n") |
|
|
|
.joinToString("\n") |
|
|
|
|
|
|
|
.replace(chapter.title,"") |
|
|
|
|
|
|
|
|
|
|
|
epubBook.addSection( |
|
|
|
epubBook.addSection( |
|
|
|
chapter.title, |
|
|
|
chapter.title, |
|
|
|
ResourceUtil.createHTMLResource(chapter.title, content1) |
|
|
|
ResourceUtil.createHTMLResource(chapter.title, content1) |
|
|
|