Fix being able to expand/collapse a single category via long press hopper

This commit is contained in:
Jays2Kings 2021-04-19 03:05:23 -04:00
parent 1e454f5a6c
commit 729f9af34a

View File

@ -614,7 +614,7 @@ class LibraryController(
when (preferences.hopperLongPressAction().get()) { when (preferences.hopperLongPressAction().get()) {
3 -> showGroupOptions() 3 -> showGroupOptions()
2 -> showDisplayOptions() 2 -> showDisplayOptions()
1 -> presenter.toggleAllCategoryVisibility() 1 -> if (canCollapseOrExpandCategory() != null) presenter.toggleAllCategoryVisibility()
else -> activityBinding?.toolbar?.menu?.performIdentifierAction( else -> activityBinding?.toolbar?.menu?.performIdentifierAction(
R.id.action_search, R.id.action_search,
0 0