From 0b97712880c10935d7d8aea3734f630464190e42 Mon Sep 17 00:00:00 2001 From: gedoor Date: Mon, 7 Jun 2021 15:16:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/data/entities/Book.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/data/entities/Book.kt b/app/src/main/java/io/legado/app/data/entities/Book.kt index b51544110..e11193a3c 100644 --- a/app/src/main/java/io/legado/app/data/entities/Book.kt +++ b/app/src/main/java/io/legado/app/data/entities/Book.kt @@ -114,7 +114,9 @@ data class Book( fun getDisplayIntro() = if (customIntro.isNullOrEmpty()) intro else customIntro //自定义简介有自动更新的需求时,可通过更新intro再调用upCustomIntro()完成 - fun upCustomIntro() = customIntro = intro + fun upCustomIntro() { + customIntro = intro + } fun fileCharset(): Charset { return charset(charset ?: "UTF-8")