pull/1903/head
kunfei 3 years ago
parent 8908f9e53b
commit e4f07920ee
  1. 6
      app/src/main/java/io/legado/app/ui/main/MainActivity.kt

@ -147,8 +147,10 @@ class MainActivity : VMBaseActivity<ActivityMainBinding, MainViewModel>(),
if (LocalConfig.versionCode != appInfo.versionCode) { if (LocalConfig.versionCode != appInfo.versionCode) {
LocalConfig.versionCode = appInfo.versionCode LocalConfig.versionCode = appInfo.versionCode
if (LocalConfig.isFirstOpenApp) { if (LocalConfig.isFirstOpenApp) {
val text = String(assets.open("help/appHelp.md").readBytes()) val help = String(assets.open("help/appHelp.md").readBytes())
showDialogFragment(TextDialog(text, TextDialog.Mode.MD)) showDialogFragment(TextDialog(help, TextDialog.Mode.MD))
val privacyPolicy = String(assets.open("privacyPolicy.md").readBytes())
showDialogFragment(TextDialog(privacyPolicy, TextDialog.Mode.MD))
} else if (!BuildConfig.DEBUG) { } else if (!BuildConfig.DEBUG) {
val log = String(assets.open("updateLog.md").readBytes()) val log = String(assets.open("updateLog.md").readBytes())
showDialogFragment(TextDialog(log, TextDialog.Mode.MD)) showDialogFragment(TextDialog(log, TextDialog.Mode.MD))

Loading…
Cancel
Save