Fix recents controller app bar at the start

This commit is contained in:
Jays2Kings 2022-04-21 01:43:46 -04:00
parent 325c628172
commit 1666f8ba4c

View file

@ -205,11 +205,12 @@ class RecentsController(bundle: Bundle? = null) :
}
)
if (!isReturning && adapter.itemCount == 0) {
activityBinding?.appBar?.y = 0f
activityBinding?.appBar?.updateAppBarAfterY(binding.recycler)
activityBinding?.appBar?.lockYPos = true
}
viewScope.launchUI {
if (!isReturning && adapter.itemCount == 0) {
activityBinding?.appBar?.y = 0f
activityBinding?.appBar?.lockYPos = true
}
val height =
activityBinding?.bottomNav?.height ?: view.rootWindowInsetsCompat?.getInsets(
systemBars()