Fixes for categories index

(cherry picked from commit af3a036e80ba492180d2f2a16af7fffeb6f3fb09)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryTab.kt
This commit is contained in:
Jobobby04 2023-04-16 14:17:55 -04:00
parent 6af47d03cb
commit e41688e5c8

View File

@ -238,7 +238,7 @@ object LibraryTab : Tab {
navigator.push(GlobalSearchScreen(screenModel.state.value.searchQuery ?: ""))
},
getNumberOfMangaForCategory = { state.getMangaCountForCategory(it) },
getDisplayModeForPage = { state.categories[it].display },
getDisplayModeForPage = { state.categories[it.coerceAtMost(state.categories.lastIndex)].display },
getColumnsForOrientation = { screenModel.getColumnsPreferenceForCurrentOrientation(it) },
) { state.getLibraryItemsByPage(it) }
}