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 550d74df13..e7d00d8ff9 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 @@ -445,7 +445,7 @@ class LibraryController( MaterialMenuSheet.MenuSheetItem( id, LibraryGroup.groupTypeDrawableRes(id), - LibraryGroup.groupTypeStringRes(id) + LibraryGroup.groupTypeStringRes(id, presenter.allCategories.size > 1) ) } MaterialMenuSheet( diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryGroup.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryGroup.kt index ec82daf210..426f97ac1d 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryGroup.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryGroup.kt @@ -11,14 +11,14 @@ object LibraryGroup { const val BY_TRACK_STATUS = 4 const val UNGROUPED = 5 - fun groupTypeStringRes(type: Int): Int { + fun groupTypeStringRes(type: Int, hasCategories: Boolean = true): Int { return when (type) { BY_STATUS -> R.string.status BY_TAG -> R.string.tag BY_SOURCE -> R.string.sources BY_TRACK_STATUS -> R.string.tracking_status UNGROUPED -> R.string.ungrouped - else -> R.string.categories + else -> if (hasCategories) R.string.categories else R.string.ungrouped } }