From 729f9af34a2641272fa41e666915aa1ae83b084b Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Mon, 19 Apr 2021 03:05:23 -0400 Subject: [PATCH] Fix being able to expand/collapse a single category via long press hopper --- .../java/eu/kanade/tachiyomi/ui/library/LibraryController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt index 8f159fb62e..4d64f675fa 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt @@ -614,7 +614,7 @@ class LibraryController( when (preferences.hopperLongPressAction().get()) { 3 -> showGroupOptions() 2 -> showDisplayOptions() - 1 -> presenter.toggleAllCategoryVisibility() + 1 -> if (canCollapseOrExpandCategory() != null) presenter.toggleAllCategoryVisibility() else -> activityBinding?.toolbar?.menu?.performIdentifierAction( R.id.action_search, 0