|
|
|
@ -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)) |
|
|
|
|