瀏覽代碼

Fix categories button not working after adding manga (closes #2966)

arkon 5 年之前
父節點
當前提交
7fd547a2d6
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt

+ 3 - 3
app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt

@@ -83,10 +83,10 @@ class MangaInfoController(private val fromSource: Boolean = false) :
 
         if (presenter.manga.favorite && presenter.getCategories().isNotEmpty()) {
             binding.btnCategories.visible()
-            binding.btnCategories.clicks()
-                .onEach { onCategoriesClick() }
-                .launchIn(scope)
         }
+        binding.btnCategories.clicks()
+            .onEach { onCategoriesClick() }
+            .launchIn(scope)
 
         if (presenter.source is HttpSource) {
             binding.btnWebview.visible()