Fix dict rule import

This commit is contained in:
Horis
2025-01-14 12:04:29 +08:00
parent c12ba17b5d
commit 936fe59b2b

View File

@@ -72,29 +72,13 @@ class FileAssociationActivity :
}
viewModel.successLive.observe(this) {
when (it.first) {
"bookSource" -> showDialogFragment(
ImportBookSourceDialog(it.second, true)
)
"rssSource" -> showDialogFragment(
ImportRssSourceDialog(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)
)
"bookSource" -> showDialogFragment(ImportBookSourceDialog(it.second, true))
"rssSource" -> showDialogFragment(ImportRssSourceDialog(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))
"dictRule" -> showDialogFragment(ImportDictRuleDialog(it.second, true))
}
}
viewModel.errorLive.observe(this) {