mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix: Actually stop it from showing duplicate entries
This commit is contained in:
parent
70cde33c04
commit
08b629d1f5
1 changed files with 6 additions and 2 deletions
|
@ -914,9 +914,13 @@ class LibraryPresenter(
|
||||||
id to LibraryHeaderItem({ categories.getOrDefault(id) }, id)
|
id to LibraryHeaderItem({ categories.getOrDefault(id) }, id)
|
||||||
}
|
}
|
||||||
} + (-1 to catItemAll) + (0 to LibraryHeaderItem({ categories.getOrDefault(0) }, 0))
|
} + (-1 to catItemAll) + (0 to LibraryHeaderItem({ categories.getOrDefault(0) }, 0))
|
||||||
).toMap()
|
).toMap()
|
||||||
|
|
||||||
val items = libraryManga.apply { if (!libraryIsGrouped) distinctBy { it.id } }.mapNotNull {
|
val items = if (libraryIsGrouped) {
|
||||||
|
libraryManga
|
||||||
|
} else {
|
||||||
|
libraryManga.distinctBy { it.id }
|
||||||
|
}.mapNotNull {
|
||||||
val headerItem = (
|
val headerItem = (
|
||||||
if (!libraryIsGrouped) {
|
if (!libraryIsGrouped) {
|
||||||
catItemAll
|
catItemAll
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue