mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
Fix dict rule import
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user