From 862a9457d0410cb7d1723a1c5d14da718044aeab Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 17 Feb 2020 19:27:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/help/BookHelp.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/BookHelp.kt b/app/src/main/java/io/legado/app/help/BookHelp.kt index bf00757bb..d649e9448 100644 --- a/app/src/main/java/io/legado/app/help/BookHelp.kt +++ b/app/src/main/java/io/legado/app/help/BookHelp.kt @@ -2,7 +2,7 @@ package io.legado.app.help import android.net.Uri import androidx.documentfile.provider.DocumentFile -import com.github.houbb.opencc4j.util.ZhConverterUtil +import com.github.houbb.opencc4j.core.impl.ZhConvertBootstrap import io.legado.app.App import io.legado.app.constant.EventBus import io.legado.app.constant.PreferKey @@ -270,8 +270,8 @@ object BookHelp { } } when (AppConfig.chineseConverterType) { - 2 -> c = ZhConverterUtil.toTraditional(c) - 1 -> c = ZhConverterUtil.toSimple(c) + 2 -> c = ZhConvertBootstrap.newInstance().toTraditional(c) + 1 -> c = ZhConvertBootstrap.newInstance().toSimple(c) } val indent = App.INSTANCE.getPrefInt("textIndent", 2) return c.replace("\\s*\\n+\\s*".toRegex(), "\n" + " ".repeat(indent))