Pārlūkot izejas kodu

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

arkon 5 gadi atpakaļ
vecāks
revīzija
7fd547a2d6

+ 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()