mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-24 13:48:55 +03:00
Fix manga info expansion toggling again after refreshing
This commit is contained in:
parent
cd25e1283a
commit
c9a727594e
1 changed files with 4 additions and 1 deletions
|
@ -59,6 +59,8 @@ class MangaInfoController(private val fromSource: Boolean = false) :
|
|||
|
||||
private val preferences: PreferencesHelper by injectLazy()
|
||||
|
||||
private var initialLoad: Boolean = true
|
||||
|
||||
override fun createPresenter(): MangaInfoPresenter {
|
||||
val ctrl = parentController as MangaController
|
||||
return MangaInfoPresenter(ctrl.manga!!, ctrl.source!!, ctrl.mangaFavoriteRelay)
|
||||
|
@ -270,8 +272,9 @@ class MangaInfoController(private val fromSource: Boolean = false) :
|
|||
.launchInUI()
|
||||
|
||||
// Expand manga info if navigated from source listing
|
||||
if (fromSource) {
|
||||
if (initialLoad && fromSource) {
|
||||
toggleMangaInfo(view.context)
|
||||
initialLoad = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue