From c0fbdb7fd052841e6fea58bd3f298b12dff185c6 Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Fri, 6 Aug 2021 22:39:49 -0400 Subject: [PATCH] Fix older tablets not showing the library bottom sheet when peeked --- .../java/eu/kanade/tachiyomi/ui/library/LibraryController.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt index 363eb39d84..dc21aaed20 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt @@ -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 { topMargin = insets.systemWindowInsetTop + 4.dpToPx } + updateFilterSheetY() }, onLeavingController = { binding.headerCard.isVisible = false