Fix older tablets not showing the library bottom sheet when peeked

This commit is contained in:
Jays2Kings 2021-08-06 22:39:49 -04:00
parent 9a009f7a76
commit c0fbdb7fd0

View File

@ -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