some fixes to the appbar in library

This commit is contained in:
Jays2Kings 2022-04-23 04:19:11 -04:00
parent baba5500c2
commit fc4bb9c36f

View file

@ -1181,8 +1181,10 @@ class LibraryController(
activeCategory = pos
preferences.lastUsedCategory().set(pos)
binding.libraryGridRecycler.recycler.post {
activityBinding.appBar.y = 0f
activityBinding.appBar.updateAppBarAfterY(binding.libraryGridRecycler.recycler)
if (isControllerVisible) {
activityBinding.appBar.y = 0f
activityBinding.appBar.updateAppBarAfterY(binding.libraryGridRecycler.recycler)
}
}
}
}