mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 00:39:14 +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
|
bottom = view?.rootWindowInsets?.systemWindowInsetBottom ?: 0
|
||||||
)
|
)
|
||||||
updateHopperY()
|
updateHopperY()
|
||||||
|
binding.filterBottomSheet.filterBottomSheet.sheetBehavior?.peekHeight = 60.dpToPx +
|
||||||
|
(view?.rootWindowInsets?.systemWindowInsetBottom ?: 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -552,6 +554,7 @@ class LibraryController(
|
|||||||
binding.headerCard.updateLayoutParams<ViewGroup.MarginLayoutParams> {
|
binding.headerCard.updateLayoutParams<ViewGroup.MarginLayoutParams> {
|
||||||
topMargin = insets.systemWindowInsetTop + 4.dpToPx
|
topMargin = insets.systemWindowInsetTop + 4.dpToPx
|
||||||
}
|
}
|
||||||
|
updateFilterSheetY()
|
||||||
},
|
},
|
||||||
onLeavingController = {
|
onLeavingController = {
|
||||||
binding.headerCard.isVisible = false
|
binding.headerCard.isVisible = false
|
||||||
|
Loading…
Reference in New Issue
Block a user