From c0250ab1ee28acc1a5234d6465916b01329790f4 Mon Sep 17 00:00:00 2001 From: Jay Date: Mon, 10 Feb 2020 22:41:07 -0800 Subject: [PATCH] Update LibraryUpdateService.kt --- .../eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt b/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt index 44b137c3cd..37adc99fa4 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt @@ -361,7 +361,7 @@ class LibraryUpdateService( downloadChapters(manga, newChapters.sortedBy { it.chapter_number }) 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 { val manga = it.first 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) { setSmallIcon(R.drawable.ic_tachi) try {