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 409c738f3..fe0d33185 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 @@ -262,8 +262,12 @@ class LibraryController( } fun showSettingsSheet() { - adapter?.categories?.get(binding.libraryPager.currentItem)?.let { category -> - settingsSheet?.show(category) + if (adapter?.categories?.isNotEmpty() == true) { + adapter?.categories?.get(binding.libraryPager.currentItem)?.let { category -> + settingsSheet?.show(category) + } + } else { + settingsSheet?.show() } }