mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-13 07:35:06 +01:00
Swiping up on bottom nav with an expanded filter sheet now opens display options
This commit is contained in:
parent
b08a5d6596
commit
776e75cb6c
@ -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 {
|
||||||
|
bottom_sheet.sheetBehavior?.state == BottomSheetBehavior.STATE_HIDDEN -> bottom_sheet.sheetBehavior?.state =
|
||||||
BottomSheetBehavior.STATE_COLLAPSED
|
BottomSheetBehavior.STATE_COLLAPSED
|
||||||
else bottom_sheet.sheetBehavior?.state = BottomSheetBehavior.STATE_EXPANDED
|
bottom_sheet.sheetBehavior?.state != BottomSheetBehavior.STATE_EXPANDED -> bottom_sheet.sheetBehavior?.state = BottomSheetBehavior.STATE_EXPANDED
|
||||||
|
else -> DisplayBottomSheet(this).show()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun toggleSheet() {
|
override fun toggleSheet() {
|
||||||
|
Loading…
Reference in New Issue
Block a user