Bladeren bron

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

arkon 5 jaren geleden
bovenliggende
commit
7fd547a2d6
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  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()