Fixed manga details being blank

This commit is contained in:
Jay 2020-04-22 01:48:47 -04:00
parent aab4e7fe5a
commit 12dfad2432

View File

@ -200,12 +200,12 @@ class MangaDetailsController : BaseController,
super.onViewCreated(view) super.onViewCreated(view)
coverColor = null coverColor = null
presenter.onCreate()
setTabletMode(view) setTabletMode(view)
setRecycler(view) setRecycler(view)
setPaletteColor() setPaletteColor()
setFastScroller() setFastScroller()
presenter.onCreate()
swipe_refresh.isRefreshing = presenter.isLoading swipe_refresh.isRefreshing = presenter.isLoading
if (manga?.initialized != true) if (manga?.initialized != true)
swipe_refresh.post { swipe_refresh.isRefreshing = true } swipe_refresh.post { swipe_refresh.isRefreshing = true }
@ -553,7 +553,6 @@ class MangaDetailsController : BaseController,
} }
} }
override fun onChangeStarted(handler: ControllerChangeHandler, type: ControllerChangeType) { override fun onChangeStarted(handler: ControllerChangeHandler, type: ControllerChangeType) {
super.onChangeStarted(handler, type) super.onChangeStarted(handler, type)
if (type == ControllerChangeType.PUSH_ENTER || type == ControllerChangeType.POP_ENTER) { if (type == ControllerChangeType.PUSH_ENTER || type == ControllerChangeType.POP_ENTER) {