mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-23 13:23:28 +03:00
Fix crash in library when selected category is deleted (#9044)
This commit is contained in:
parent
bd2cb97179
commit
13bb45b4be
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue