mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fix older tablets not showing the library bottom sheet when peeked
This commit is contained in:
parent
9a009f7a76
commit
c0fbdb7fd0
1 changed files with 3 additions and 0 deletions
|
@ -325,6 +325,8 @@ class LibraryController(
|
|||
bottom = view?.rootWindowInsets?.systemWindowInsetBottom ?: 0
|
||||
)
|
||||
updateHopperY()
|
||||
binding.filterBottomSheet.filterBottomSheet.sheetBehavior?.peekHeight = 60.dpToPx +
|
||||
(view?.rootWindowInsets?.systemWindowInsetBottom ?: 0)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -552,6 +554,7 @@ class LibraryController(
|
|||
binding.headerCard.updateLayoutParams<ViewGroup.MarginLayoutParams> {
|
||||
topMargin = insets.systemWindowInsetTop + 4.dpToPx
|
||||
}
|
||||
updateFilterSheetY()
|
||||
},
|
||||
onLeavingController = {
|
||||
binding.headerCard.isVisible = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue