mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
8908f9e53b
commit
e4f07920ee
@ -147,8 +147,10 @@ class MainActivity : VMBaseActivity<ActivityMainBinding, MainViewModel>(),
|
||||
if (LocalConfig.versionCode != appInfo.versionCode) {
|
||||
LocalConfig.versionCode = appInfo.versionCode
|
||||
if (LocalConfig.isFirstOpenApp) {
|
||||
val text = String(assets.open("help/appHelp.md").readBytes())
|
||||
showDialogFragment(TextDialog(text, TextDialog.Mode.MD))
|
||||
val help = String(assets.open("help/appHelp.md").readBytes())
|
||||
showDialogFragment(TextDialog(help, TextDialog.Mode.MD))
|
||||
val privacyPolicy = String(assets.open("privacyPolicy.md").readBytes())
|
||||
showDialogFragment(TextDialog(privacyPolicy, TextDialog.Mode.MD))
|
||||
} else if (!BuildConfig.DEBUG) {
|
||||
val log = String(assets.open("updateLog.md").readBytes())
|
||||
showDialogFragment(TextDialog(log, TextDialog.Mode.MD))
|
||||
|
Loading…
Reference in New Issue
Block a user