pull/475/head
gedoor 4 years ago
parent 63b09350e8
commit 83969cb550
  1. 0
      app/src/main/assets/help/appHelp.md
  2. 0
      app/src/main/assets/help/httpTTSHelp.md
  3. 1
      app/src/main/assets/help/readHelp.md
  4. 2
      app/src/main/assets/help/regexHelp.md
  5. 1
      app/src/main/assets/help/webDavHelp.md
  6. 3
      app/src/main/java/io/legado/app/ui/book/read/config/SpeakEngineDialog.kt
  7. 2
      app/src/main/java/io/legado/app/ui/book/source/edit/BookSourceEditActivity.kt
  8. 2
      app/src/main/java/io/legado/app/ui/main/MainActivity.kt
  9. 2
      app/src/main/java/io/legado/app/ui/main/my/MyFragment.kt
  10. 2
      app/src/main/java/io/legado/app/ui/replace/edit/ReplaceEditActivity.kt
  11. 2
      app/src/main/java/io/legado/app/ui/rss/source/edit/RssSourceEditActivity.kt

@ -0,0 +1 @@
# 阅读界面帮助文档

@ -1,4 +1,4 @@
## 正则表达式学习
# 正则表达式学习
- [基本匹配](#1-基本匹配)
- [元字符](#2-元字符)

@ -29,7 +29,6 @@ import kotlinx.android.synthetic.main.dialog_http_tts_edit.view.*
import kotlinx.android.synthetic.main.dialog_recycler_view.*
import kotlinx.android.synthetic.main.item_http_tts.view.*
import org.jetbrains.anko.sdk27.listeners.onClick
import java.io.File
class SpeakEngineDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickListener {
@ -128,7 +127,7 @@ class SpeakEngineDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickListener
}
neutralButton(R.string.help) {
val helpStr = String(
requireContext().assets.open("help${File.separator}httpTts.md").readBytes()
requireContext().assets.open("help/httpTTSHelp.md").readBytes()
)
TextDialog.show(childFragmentManager, helpStr, TextDialog.MD)
}

@ -389,7 +389,7 @@ class BookSourceEditActivity :
}
private fun showRegexHelp() {
val mdText = String(assets.open("help/regex.md").readBytes())
val mdText = String(assets.open("help/regexHelp.md").readBytes())
TextDialog.show(supportFragmentManager, mdText, TextDialog.MD)
}

@ -104,7 +104,7 @@ class MainActivity : VMBaseActivity<MainViewModel>(R.layout.activity_main),
if (getPrefInt(PreferKey.versionCode) != App.versionCode) {
putPrefInt(PreferKey.versionCode, App.versionCode)
if (LocalConfig.isFirstOpen) {
val text = String(assets.open("help/help.md").readBytes())
val text = String(assets.open("help/appHelp.md").readBytes())
TextDialog.show(supportFragmentManager, text, TextDialog.MD)
LocalConfig.isFirstOpen = false
} else if (!BuildConfig.DEBUG) {

@ -50,7 +50,7 @@ class MyFragment : BaseFragment(R.layout.fragment_my_config), FilePickerDialog.C
override fun onCompatOptionsItemSelected(item: MenuItem) {
when (item.itemId) {
R.id.menu_help -> {
val text = String(requireContext().assets.open("help/help.md").readBytes())
val text = String(requireContext().assets.open("help/appHelp.md").readBytes())
TextDialog.show(childFragmentManager, text, TextDialog.MD)
}
}

@ -144,7 +144,7 @@ class ReplaceEditActivity :
}
private fun showRegexHelp() {
val mdText = String(assets.open("help/regex.md").readBytes())
val mdText = String(assets.open("help/regexHelp.md").readBytes())
TextDialog.show(supportFragmentManager, mdText, TextDialog.MD)
}

@ -206,7 +206,7 @@ class RssSourceEditActivity :
}
private fun showRegexHelp() {
val mdText = String(assets.open("help/regex.md").readBytes())
val mdText = String(assets.open("help/regexHelp.md").readBytes())
TextDialog.show(supportFragmentManager, mdText, TextDialog.MD)
}

Loading…
Cancel
Save