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

This commit is contained in:
arkon 2020-04-26 16:08:23 -04:00
parent d19d787f6e
commit 7fd547a2d6

View File

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