From 8628260fe14aa0788fcf71c02c55793098a92be9 Mon Sep 17 00:00:00 2001 From: fisher Date: Tue, 24 Nov 2020 01:45:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=9B=B4=E6=96=B0=E6=97=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=87=AA=E5=B8=A6=E6=9C=AC=E5=9C=B0txt?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/ui/main/MainActivity.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/main/MainActivity.kt b/app/src/main/java/io/legado/app/ui/main/MainActivity.kt index 028506550..5e5a41a7f 100644 --- a/app/src/main/java/io/legado/app/ui/main/MainActivity.kt +++ b/app/src/main/java/io/legado/app/ui/main/MainActivity.kt @@ -17,6 +17,7 @@ import io.legado.app.constant.EventBus import io.legado.app.constant.PreferKey import io.legado.app.help.AppConfig import io.legado.app.help.BookHelp +import io.legado.app.help.DefaultData import io.legado.app.help.LocalConfig import io.legado.app.help.storage.Backup import io.legado.app.lib.theme.ATH @@ -111,6 +112,7 @@ class MainActivity : VMBaseActivity(R.layout.activity_main), } else if (!BuildConfig.DEBUG) { val log = String(assets.open("updateLog.md").readBytes()) TextDialog.show(supportFragmentManager, log, TextDialog.MD, 5000, true) + DefaultData.importDefaultTocRules()//版本更新时更新自带本地txt目录规则 } viewModel.upVersion() }