mirror of
https://github.com/gedoor/legado.git
synced 2025-01-08 11:47:32 +08:00
替换Help相关文件路径地址
This commit is contained in:
parent
5d8287d5b5
commit
f7fc66e64f
@ -109,7 +109,7 @@ https://gedoor.github.io/Disclaimer
|
||||
|
||||
* [eBook sources rules](https://mgz0227.github.io/The-tutorial-of-Legado/)
|
||||
* [Update Log](/app/src/main/assets/updateLog.md)
|
||||
* [Help Documentation](/app/src/main/assets/help/appHelp.md)
|
||||
* [Help Documentation](/app/src/main/assets/web/help/md/appHelp.md)
|
||||
* [web bookshelf](https://github.com/gedoor/legado_web_bookshelf)
|
||||
* [web source editor](https://github.com/gedoor/legado_web_source_editor)
|
||||
|
||||
|
@ -73,7 +73,7 @@ https://gedoor.github.io/Disclaimer
|
||||
##### 阅读3.0
|
||||
* [书源规则](https://mgz0227.github.io/The-tutorial-of-Legado/)
|
||||
* [更新日志](/app/src/main/assets/updateLog.md)
|
||||
* [帮助文档](/app/src/main/assets/help/appHelp.md)
|
||||
* [帮助文档](/app/src/main/assets/web/help/md/appHelp.md)
|
||||
* [web端书架](https://github.com/gedoor/legado_web_bookshelf)
|
||||
* [web端源编辑](https://github.com/gedoor/legado_web_source_editor)
|
||||
|
||||
|
@ -1023,7 +1023,7 @@ class ReadBookActivity : BaseReadBookActivity(),
|
||||
}
|
||||
|
||||
override fun showReadMenuHelp() {
|
||||
val text = String(assets.open("help/readMenuHelp.md").readBytes())
|
||||
val text = String(assets.open("web/help/md/readMenuHelp.md").readBytes())
|
||||
showDialogFragment(TextDialog(getString(R.string.help), text, TextDialog.Mode.MD))
|
||||
}
|
||||
|
||||
|
@ -132,7 +132,7 @@ class HttpTtsEditDialog() : BaseDialogFragment(R.layout.dialog_http_tts_edit, tr
|
||||
|
||||
private fun help() {
|
||||
val helpStr = String(
|
||||
requireContext().assets.open("help/httpTTSHelp.md").readBytes()
|
||||
requireContext().assets.open("web/help/md/httpTTSHelp.md").readBytes()
|
||||
)
|
||||
showDialogFragment(TextDialog(getString(R.string.help), helpStr, TextDialog.Mode.MD))
|
||||
}
|
||||
|
@ -190,7 +190,7 @@ class BookSourceDebugActivity : VMBaseActivity<ActivitySourceDebugBinding, BookS
|
||||
}
|
||||
|
||||
private fun showHelp() {
|
||||
val text = String(assets.open("help/debugHelp.md").readBytes())
|
||||
val text = String(assets.open("web/help/md/debugHelp.md").readBytes())
|
||||
showDialogFragment(TextDialog(getString(R.string.help), text, TextDialog.Mode.MD))
|
||||
}
|
||||
|
||||
|
@ -371,7 +371,7 @@ class BookSourceActivity : VMBaseActivity<ActivityBookSourceBinding, BookSourceV
|
||||
}
|
||||
|
||||
private fun showHelp() {
|
||||
val text = String(assets.open("help/SourceMBookHelp.md").readBytes())
|
||||
val text = String(assets.open("web/help/md/SourceMBookHelp.md").readBytes())
|
||||
showDialogFragment(TextDialog(getString(R.string.help), text, TextDialog.Mode.MD))
|
||||
}
|
||||
|
||||
|
@ -245,7 +245,7 @@ class TxtTocRuleActivity : VMBaseActivity<ActivityTxtTocRuleBinding, TxtTocRuleV
|
||||
}
|
||||
|
||||
private fun showTxtTocRuleHelp() {
|
||||
val text = String(assets.open("help/txtTocRuleHelp.md").readBytes())
|
||||
val text = String(assets.open("web/help/md/txtTocRuleHelp.md").readBytes())
|
||||
showDialogFragment(TextDialog(getString(R.string.help), text, TextDialog.Mode.MD))
|
||||
}
|
||||
|
||||
|
@ -198,7 +198,7 @@ class TxtTocRuleDialog() : BaseDialogFragment(R.layout.dialog_toc_regex),
|
||||
}
|
||||
|
||||
private fun showTxtTocRuleHelp() {
|
||||
val text = String(requireContext().assets.open("help/txtTocRuleHelp.md").readBytes())
|
||||
val text = String(requireContext().assets.open("web/help/md/txtTocRuleHelp.md").readBytes())
|
||||
showDialogFragment(TextDialog(getString(R.string.help), text, TextDialog.Mode.MD))
|
||||
}
|
||||
|
||||
|
@ -172,7 +172,7 @@ class BackupConfigFragment : PreferenceFragment(),
|
||||
}
|
||||
|
||||
private fun showHelp() {
|
||||
val text = String(requireContext().assets.open("help/webDavHelp.md").readBytes())
|
||||
val text = String(requireContext().assets.open("web/help/md/webDavHelp.md").readBytes())
|
||||
showDialogFragment(TextDialog(getString(R.string.help), text, TextDialog.Mode.MD))
|
||||
}
|
||||
|
||||
|
@ -237,7 +237,7 @@ class DictRuleActivity : VMBaseActivity<ActivityDictRuleBinding, DictRuleViewMod
|
||||
}
|
||||
|
||||
private fun showDictRuleHelp() {
|
||||
val text = String(assets.open("help/dictRuleHelp.md").readBytes())
|
||||
val text = String(assets.open("web/help/md/dictRuleHelp.md").readBytes())
|
||||
showDialogFragment(TextDialog(getString(R.string.help), text, TextDialog.Mode.MD))
|
||||
}
|
||||
}
|
||||
|
@ -229,7 +229,7 @@ class MainActivity : VMBaseActivity<ActivityMainBinding, MainViewModel>(),
|
||||
}
|
||||
LocalConfig.versionCode = appInfo.versionCode
|
||||
if (LocalConfig.isFirstOpenApp) {
|
||||
val help = String(assets.open("help/appHelp.md").readBytes())
|
||||
val help = String(assets.open("web/help/md/appHelp.md").readBytes())
|
||||
val dialog = TextDialog(getString(R.string.help), help, TextDialog.Mode.MD)
|
||||
dialog.setOnDismissListener {
|
||||
block.resume(null)
|
||||
|
@ -69,7 +69,7 @@ class MyFragment() : BaseFragment(R.layout.fragment_my_config), MainFragmentInte
|
||||
override fun onCompatOptionsItemSelected(item: MenuItem) {
|
||||
when (item.itemId) {
|
||||
R.id.menu_help -> {
|
||||
val text = String(requireContext().assets.open("help/appHelp.md").readBytes())
|
||||
val text = String(requireContext().assets.open("web/help/md/appHelp.md").readBytes())
|
||||
showDialogFragment(TextDialog(getString(R.string.help), text, TextDialog.Mode.MD))
|
||||
}
|
||||
}
|
||||
|
@ -325,7 +325,7 @@ class ReplaceRuleActivity : VMBaseActivity<ActivityReplaceRuleBinding, ReplaceRu
|
||||
}
|
||||
|
||||
private fun showHelp() {
|
||||
val text = String(assets.open("help/replaceRuleHelp.md").readBytes())
|
||||
val text = String(assets.open("web/help/md/replaceRuleHelp.md").readBytes())
|
||||
showDialogFragment(TextDialog(getString(R.string.help), text, TextDialog.Mode.MD))
|
||||
}
|
||||
|
||||
|
@ -355,7 +355,7 @@ class RssSourceActivity : VMBaseActivity<ActivityRssSourceBinding, RssSourceView
|
||||
}
|
||||
|
||||
private fun showHelp() {
|
||||
val text = String(assets.open("help/SourceMRssHelp.md").readBytes())
|
||||
val text = String(assets.open("web/help/md/SourceMRssHelp.md").readBytes())
|
||||
showDialogFragment(TextDialog(getString(R.string.help), text, TextDialog.Mode.MD))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user