|
|
@@ -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) {
|