diff --git a/app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt b/app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt index 92b8bf238..e60a7d3d0 100644 --- a/app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt @@ -1,7 +1,6 @@ package io.legado.app.ui.book.cache import android.app.Application -import android.content.Context import android.graphics.Bitmap import android.graphics.drawable.Drawable import android.net.Uri @@ -239,6 +238,8 @@ class CacheViewModel(application: Application) : BaseViewModel(application) { val content1 = contentProcessor .getContent(book, chapter.title, content ?: "null", false, useReplace) .joinToString("\n") + .replace(chapter.title,"") + epubBook.addSection( chapter.title, ResourceUtil.createHTMLResource(chapter.title, content1)