From 776e75cb6c1e075d1213a07476a57dbb94fe7b6d Mon Sep 17 00:00:00 2001 From: Jay Date: Sun, 19 Apr 2020 18:37:38 -0400 Subject: [PATCH] Swiping up on bottom nav with an expanded filter sheet now opens display options --- .../eu/kanade/tachiyomi/ui/library/LibraryController.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 926bb24e30..56a9f8f7a6 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 @@ -834,9 +834,12 @@ class LibraryController( } override fun showSheet() { - if (bottom_sheet.sheetBehavior?.state == BottomSheetBehavior.STATE_HIDDEN) bottom_sheet.sheetBehavior?.state = - BottomSheetBehavior.STATE_COLLAPSED - else bottom_sheet.sheetBehavior?.state = BottomSheetBehavior.STATE_EXPANDED + when { + bottom_sheet.sheetBehavior?.state == BottomSheetBehavior.STATE_HIDDEN -> bottom_sheet.sheetBehavior?.state = + BottomSheetBehavior.STATE_COLLAPSED + bottom_sheet.sheetBehavior?.state != BottomSheetBehavior.STATE_EXPANDED -> bottom_sheet.sheetBehavior?.state = BottomSheetBehavior.STATE_EXPANDED + else -> DisplayBottomSheet(this).show() + } } override fun toggleSheet() {