Fix: crash in Updates tab due to possible duplicate headers
This commit is contained in:
parent
04d90493d9
commit
438be9d942
1 changed files with 6 additions and 0 deletions
|
|
@ -430,6 +430,12 @@ class UpdatesScreenModel(
|
|||
}
|
||||
listOf(header) + mangaItems
|
||||
}
|
||||
.distinctBy {
|
||||
when (it) {
|
||||
is UpdatesUiModel.Header -> it.hashCode()
|
||||
is UpdatesUiModel.Item -> "${it.item.update.mangaId}-${it.item.update.chapterId}"
|
||||
}
|
||||
}
|
||||
// KMK <--
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue