Fix tapping manga info button and fix not showing full info when first looking at the manga

This commit is contained in:
Jobobby04 2020-05-09 13:10:45 -04:00
parent 4195b00e48
commit f4d1c27cde

View File

@ -404,6 +404,15 @@ class MangaInfoController(private val fromSource: Boolean = false) :
binding.mangaSummary.clicks()
.onEach { toggleMangaInfo(view.context) }
.launchIn(scope)
binding.mangaInfoToggle.clicks()
.onEach { toggleMangaInfo(view.context) }
.launchIn(scope)
// Expand manga info if navigated from source listing
if (initialLoad && fromSource) {
toggleMangaInfo(view.context)
initialLoad = false
}
}
}