From 7fd547a2d684f789b198eb94c376605aa0eac98e Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 26 Apr 2020 16:08:23 -0400 Subject: [PATCH] Fix categories button not working after adding manga (closes #2966) --- .../kanade/tachiyomi/ui/manga/info/MangaInfoController.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt index 9565dbd84..a8fa4d56c 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt +++ b/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()