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