Tapping library filter twice now opens display options

This commit is contained in:
Jays2Kings 2022-05-12 22:15:09 -04:00
parent 8cbbe2c8ff
commit 2edf519afd

View file

@ -1758,7 +1758,9 @@ class LibraryController(
R.id.action_search -> expandActionViewFromInteraction = true
R.id.action_filter -> {
hasExpanded = true
binding.filterBottomSheet.filterBottomSheet.sheetBehavior?.expand()
val sheetBehavior = binding.filterBottomSheet.filterBottomSheet.sheetBehavior
if (!sheetBehavior.isExpanded()) sheetBehavior?.expand()
else showDisplayOptions()
}
else -> return super.onOptionsItemSelected(item)
}