mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 20:15:09 +01:00
Fixed unread badge type issues
This commit is contained in:
parent
fb7599c833
commit
bdf73da0ba
@ -87,7 +87,10 @@ class LibraryPresenter(
|
||||
totalChapters = null
|
||||
val mangaMap = withContext(Dispatchers.IO) {
|
||||
val library = getLibraryFromDB()
|
||||
library.apply { setDownloadCount(library) }
|
||||
library.apply {
|
||||
setDownloadCount(library)
|
||||
setUnreadBadge(library)
|
||||
}
|
||||
allLibraryItems = library
|
||||
var mangaMap = library
|
||||
mangaMap = applyFilters(mangaMap)
|
||||
@ -477,7 +480,7 @@ class LibraryPresenter(
|
||||
launchUI {
|
||||
val mangaMap = allLibraryItems
|
||||
withContext(Dispatchers.IO) { setUnreadBadge(mangaMap) }
|
||||
libraryItems = mangaMap
|
||||
allLibraryItems = mangaMap
|
||||
val current = libraryItems
|
||||
withContext(Dispatchers.IO) { setUnreadBadge(current) }
|
||||
libraryItems = current
|
||||
|
Loading…
Reference in New Issue
Block a user