mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fix blank categories showing the wrong name in single mode
This commit is contained in:
parent
2de4d164c5
commit
97a418ede7
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ class LibraryCategoryAdapter(val controller: LibraryController?) :
|
|||
} else {
|
||||
val filteredManga = withDefContext { mangas.filter { it.filter(s) } }
|
||||
if (filteredManga.isEmpty() && controller?.presenter?.showAllCategories == false) {
|
||||
val catId = mangas.firstOrNull()?.manga?.category
|
||||
val catId = mangas.firstOrNull()?.let { it.header?.catId ?: it.manga.category }
|
||||
val blankItem = catId?.let { controller.presenter.blankItem(it) }
|
||||
updateDataSet(blankItem ?: emptyList())
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue