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()) { if (presenter.manga.favorite && presenter.getCategories().isNotEmpty()) {
binding.btnCategories.visible() binding.btnCategories.visible()
}
binding.btnCategories.clicks() binding.btnCategories.clicks()
.onEach { onCategoriesClick() } .onEach { onCategoriesClick() }
.launchIn(scope) .launchIn(scope)
}
if (presenter.source is HttpSource) { if (presenter.source is HttpSource) {
binding.btnWebview.visible() binding.btnWebview.visible()