kunfei 4 年之前
父節點
當前提交
188f9b5eca
共有 1 個文件被更改,包括 4 次插入 和 4 次删除
  1. 4 4
      app/src/main/java/io/legado/app/ui/association/ImportReplaceRuleDialog.kt

+ 4 - 4
app/src/main/java/io/legado/app/ui/association/ImportReplaceRuleDialog.kt

@@ -88,14 +88,14 @@ class ImportReplaceRuleDialog() : BaseDialogFragment(R.layout.dialog_recycler_vi
             adapter.notifyDataSetChanged()
             adapter.notifyDataSetChanged()
             upSelectText()
             upSelectText()
         }
         }
-        viewModel.errorLiveData.observe(this, {
+        viewModel.errorLiveData.observe(this) {
             binding.rotateLoading.hide()
             binding.rotateLoading.hide()
             binding.tvMsg.apply {
             binding.tvMsg.apply {
                 text = it
                 text = it
                 visible()
                 visible()
             }
             }
-        })
-        viewModel.successLiveData.observe(this, {
+        }
+        viewModel.successLiveData.observe(this) {
             binding.rotateLoading.hide()
             binding.rotateLoading.hide()
             if (it > 0) {
             if (it > 0) {
                 adapter.setItems(viewModel.allRules)
                 adapter.setItems(viewModel.allRules)
@@ -106,7 +106,7 @@ class ImportReplaceRuleDialog() : BaseDialogFragment(R.layout.dialog_recycler_vi
                     visible()
                     visible()
                 }
                 }
             }
             }
-        })
+        }
         val source = arguments?.getString("source")
         val source = arguments?.getString("source")
         if (source.isNullOrEmpty()) {
         if (source.isNullOrEmpty()) {
             dismiss()
             dismiss()