修复标题重复

pull/921/head
ag2s20150909 4 years ago
parent 1a8bdaf7e4
commit 925b407b88
  1. 3
      app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt

@ -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)

Loading…
Cancel
Save