mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
hopefully fixing crashes with backdrop in library
This commit is contained in:
parent
4f1c309dbd
commit
7605e462df
2 changed files with 4 additions and 1 deletions
|
@ -1015,7 +1015,9 @@ class LibraryController(
|
|||
binding.swipeRefresh.isEnabled = !show
|
||||
setSubtitle()
|
||||
if (show) {
|
||||
binding.categoryRecycler.scrollToCategory(activeCategory)
|
||||
binding.categoryRecycler.post {
|
||||
binding.categoryRecycler.scrollToCategory(activeCategory)
|
||||
}
|
||||
binding.fastScroller.hideScrollbar()
|
||||
activityBinding?.appBar?.y = 0f
|
||||
elevateAppBar(false)
|
||||
|
|
|
@ -26,6 +26,7 @@ class CategoryRecyclerView @JvmOverloads constructor(
|
|||
|
||||
init {
|
||||
fastAdapter = FastAdapter.with(itemAdapter)
|
||||
fastAdapter.setHasStableIds(true)
|
||||
layoutManager = manager
|
||||
adapter = fastAdapter
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue