Fix dict rule import

This commit is contained in:
Horis
2025-01-14 12:04:29 +08:00
parent c12ba17b5d
commit 936fe59b2b
@@ -72,29 +72,13 @@ class FileAssociationActivity :
} }
viewModel.successLive.observe(this) { viewModel.successLive.observe(this) {
when (it.first) { when (it.first) {
"bookSource" -> showDialogFragment( "bookSource" -> showDialogFragment(ImportBookSourceDialog(it.second, true))
ImportBookSourceDialog(it.second, true) "rssSource" -> showDialogFragment(ImportRssSourceDialog(it.second, true))
) "replaceRule" -> showDialogFragment(ImportReplaceRuleDialog(it.second, true))
"httpTts" -> showDialogFragment(ImportHttpTtsDialog(it.second, true))
"rssSource" -> showDialogFragment( "theme" -> showDialogFragment(ImportThemeDialog(it.second, true))
ImportRssSourceDialog(it.second, true) "txtRule" -> showDialogFragment(ImportTxtTocRuleDialog(it.second, true))
) "dictRule" -> showDialogFragment(ImportDictRuleDialog(it.second, true))
"replaceRule" -> showDialogFragment(
ImportReplaceRuleDialog(it.second, true)
)
"httpTts" -> showDialogFragment(
ImportHttpTtsDialog(it.second, true)
)
"theme" -> showDialogFragment(
ImportThemeDialog(it.second, true)
)
"txtRule" -> showDialogFragment(
ImportTxtTocRuleDialog(it.second, true)
)
} }
} }
viewModel.errorLive.observe(this) { viewModel.errorLive.observe(this) {