From 22549529878de591fa645e2cf45129d1c53c60ca Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 7 Jun 2022 17:24:50 +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/App.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/App.kt b/app/src/main/java/io/legado/app/App.kt index d5387b0eb..efe577964 100644 --- a/app/src/main/java/io/legado/app/App.kt +++ b/app/src/main/java/io/legado/app/App.kt @@ -7,6 +7,7 @@ import android.content.res.Configuration import android.os.Build import androidx.multidex.MultiDexApplication import com.github.liuyueyi.quick.transfer.ChineseUtils +import com.github.liuyueyi.quick.transfer.constants.TransType import com.jeremyliao.liveeventbus.LiveEventBus import io.legado.app.base.AppContextWrapper import io.legado.app.constant.AppConst.channelIdDownload @@ -52,8 +53,8 @@ class App : MultiDexApplication() { BookHelp.clearInvalidCache() //初始化简繁转换引擎 when (AppConfig.chineseConverterType) { - 1 -> ChineseUtils.t2s("初始化") - 2 -> ChineseUtils.s2t("初始化") + 1 -> ChineseUtils.preLoad(true, TransType.TAIWAN_TO_SIMPLE) + 2 -> ChineseUtils.preLoad(true, TransType.SIMPLE_TO_TAIWAN) } //同步阅读记录 if (AppWebDav.syncBookProgress) {