mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 17:11:54 +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 {
|
||||||
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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user