Swiping up on bottom nav with an expanded filter sheet now opens display options

This commit is contained in:
Jay 2020-04-19 18:37:38 -04:00
parent b08a5d6596
commit 776e75cb6c

View File

@ -834,9 +834,12 @@ class LibraryController(
} }
override fun showSheet() { override fun showSheet() {
if (bottom_sheet.sheetBehavior?.state == BottomSheetBehavior.STATE_HIDDEN) bottom_sheet.sheetBehavior?.state = when {
BottomSheetBehavior.STATE_COLLAPSED bottom_sheet.sheetBehavior?.state == BottomSheetBehavior.STATE_HIDDEN -> bottom_sheet.sheetBehavior?.state =
else bottom_sheet.sheetBehavior?.state = BottomSheetBehavior.STATE_EXPANDED BottomSheetBehavior.STATE_COLLAPSED
bottom_sheet.sheetBehavior?.state != BottomSheetBehavior.STATE_EXPANDED -> bottom_sheet.sheetBehavior?.state = BottomSheetBehavior.STATE_EXPANDED
else -> DisplayBottomSheet(this).show()
}
} }
override fun toggleSheet() { override fun toggleSheet() {