Fix disappearing migrations app bar

Fixes #1669
This commit is contained in:
Jays2Kings 2023-11-05 00:49:46 -07:00
parent f368cefab3
commit fed555d69d

View file

@ -254,6 +254,27 @@ fun <T> Controller.liftAppbarWith(
}
},
)
addLifecycleListener(
object : Controller.LifecycleListener() {
override fun onChangeStart(
controller: Controller,
changeHandler: ControllerChangeHandler,
changeType: ControllerChangeType,
) {
super.onChangeStart(controller, changeHandler, changeType)
if (changeType.isEnter) {
activityBinding?.appBar?.hideBigView(
true,
setTitleAlpha = this@liftAppbarWith !is MangaDetailsController,
)
activityBinding?.appBar?.setToolbarModeBy(this@liftAppbarWith)
activityBinding?.appBar?.useTabsInPreLayout = false
colorToolbar(isToolbarColored)
activityBinding?.appBar?.updateAppBarAfterY(recycler)
}
}
},
)
}
fun Controller.scrollViewWith(