diff --git a/app/src/main/java/eu/kanade/presentation/library/components/LibraryContent.kt b/app/src/main/java/eu/kanade/presentation/library/components/LibraryContent.kt index cf1f2a2ef..b8ccc2f11 100644 --- a/app/src/main/java/eu/kanade/presentation/library/components/LibraryContent.kt +++ b/app/src/main/java/eu/kanade/presentation/library/components/LibraryContent.kt @@ -60,6 +60,9 @@ fun LibraryContent( var isRefreshing by remember(pagerState.currentPage) { mutableStateOf(false) } if (showPageTabs && categories.size > 1) { + if (categories.size <= pagerState.currentPage) { + pagerState.currentPage = categories.size - 1 + } LibraryTabs( categories = categories, currentPageIndex = pagerState.currentPage,