mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 03:19:18 +01:00
Fix source filter sheet not resizing when content inside changes
This commit is contained in:
parent
a3d0beb40c
commit
cbf7e116d7
@ -85,6 +85,10 @@ class SourceFilterSheet(val activity: Activity) :
|
||||
}
|
||||
})
|
||||
|
||||
binding.filtersRecycler.viewTreeObserver.addOnScrollChangedListener {
|
||||
updateBottomButtons()
|
||||
}
|
||||
|
||||
setOnShowListener {
|
||||
updateBottomButtons()
|
||||
}
|
||||
@ -92,7 +96,7 @@ class SourceFilterSheet(val activity: Activity) :
|
||||
binding.filtersRecycler.layoutManager = androidx.recyclerview.widget.LinearLayoutManager(context)
|
||||
binding.filtersRecycler.clipToPadding = false
|
||||
binding.filtersRecycler.adapter = adapter
|
||||
binding.filtersRecycler.setHasFixedSize(true)
|
||||
binding.filtersRecycler.setHasFixedSize(false)
|
||||
|
||||
sheetBehavior.addBottomSheetCallback(
|
||||
object : BottomSheetBehavior.BottomSheetCallback() {
|
||||
|
Loading…
Reference in New Issue
Block a user