mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-19 23:49:16 +01:00
Fix older tablets not showing the library bottom sheet when peeked
This commit is contained in:
parent
9a009f7a76
commit
c0fbdb7fd0
@ -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…
Reference in New Issue
Block a user