From 925b407b889f807f46842fa4abf3baad59453b70 Mon Sep 17 00:00:00 2001 From: ag2s20150909 Date: Sat, 3 Apr 2021 07:47:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=A0=87=E9=A2=98=E9=87=8D?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/ui/book/cache/CacheViewModel.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)