Horis пре 1 година
родитељ
комит
5a366f6630
1 измењених фајлова са 7 додато и 23 уклоњено
  1. 7 23
      app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt

+ 7 - 23
app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt

@@ -72,29 +72,13 @@ class FileAssociationActivity :
         }
         }
         viewModel.successLive.observe(this) {
         viewModel.successLive.observe(this) {
             when (it.first) {
             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) {
         viewModel.errorLive.observe(this) {