mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-09 19:55:11 +01:00
Fixed initial scroll of categories on SetCategoriesSheet
This commit is contained in:
parent
0cfce71266
commit
720a78d968
@ -155,9 +155,6 @@ class SetCategoriesSheet(
|
||||
)
|
||||
}
|
||||
)
|
||||
binding.categoryRecyclerView.scrollToPosition(
|
||||
max(0, itemAdapter.adapterItems.indexOf(selectExtension.selectedItems.firstOrNull()))
|
||||
)
|
||||
}
|
||||
|
||||
override fun onStart() {
|
||||
@ -165,6 +162,11 @@ class SetCategoriesSheet(
|
||||
sheetBehavior.expand()
|
||||
sheetBehavior.skipCollapsed = true
|
||||
updateBottomButtons()
|
||||
binding.root.post {
|
||||
binding.categoryRecyclerView.scrollToPosition(
|
||||
max(0, itemAdapter.adapterItems.indexOf(selectExtension.selectedItems.firstOrNull()))
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
fun updateBottomButtons() {
|
||||
|
Loading…
Reference in New Issue
Block a user