mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-09-10 20:53:14 +02:00
Update LibraryUpdateService.kt
This commit is contained in:
parent
eddfeff146
commit
c0250ab1ee
@ -361,7 +361,7 @@ class LibraryUpdateService(
|
|||||||
downloadChapters(manga, newChapters.sortedBy { it.chapter_number })
|
downloadChapters(manga, newChapters.sortedBy { it.chapter_number })
|
||||||
hasDownloads = true
|
hasDownloads = true
|
||||||
}
|
}
|
||||||
newUpdates.add(manga to newChapters.toTypedArray())
|
newUpdates.add(manga to newChapters.sortedBy { it.chapter_number }.toTypedArray())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -507,7 +507,7 @@ class LibraryUpdateService(
|
|||||||
updates.forEach {
|
updates.forEach {
|
||||||
val manga = it.first
|
val manga = it.first
|
||||||
val chapters = it.second
|
val chapters = it.second
|
||||||
val chapterNames = chapters.map { chapter -> chapter.name }.toSet()
|
val chapterNames = chapters.map { chapter -> chapter.name }
|
||||||
notifications.add(Pair(notification(Notifications.CHANNEL_NEW_CHAPTERS) {
|
notifications.add(Pair(notification(Notifications.CHANNEL_NEW_CHAPTERS) {
|
||||||
setSmallIcon(R.drawable.ic_tachi)
|
setSmallIcon(R.drawable.ic_tachi)
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user