Skip to content

Commit

Permalink
Fix dict rule import
Browse files Browse the repository at this point in the history
  • Loading branch information
821938089 committed Jan 14, 2025
1 parent c12ba17 commit 936fe59
Showing 1 changed file with 7 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 936fe59

Please sign in to comment.