From 1dddba7f251dbda4b935db5f86bd7937fec73fab Mon Sep 17 00:00:00 2001 From: FourTOne5 <59261191+FourTOne5@users.noreply.github.com> Date: Thu, 15 Jul 2021 03:57:03 +0600 Subject: [PATCH] Update Libary update notification. (#5545) * Update LibraryUpdateNotifier.kt * Update LibraryUpdateService.kt --- .../eu/kanade/tachiyomi/data/library/LibraryUpdateNotifier.kt | 2 +- .../eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateNotifier.kt b/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateNotifier.kt index e2f2eef87e..c4da5421c6 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateNotifier.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateNotifier.kt @@ -74,7 +74,7 @@ class LibraryUpdateNotifier(private val context: Context) { .setContentTitle(context.getString(R.string.notification_check_updates)) .setContentText("($current/$total)") } else { - val updatingText = manga.joinToString("\n") { it.title } + val updatingText = manga.joinToString("\n") { "• ${it.title}" } progressNotificationBuilder .setContentTitle(context.getString(R.string.notification_updating, current, total)) .setStyle(NotificationCompat.BigTextStyle().bigText(updatingText)) 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 3f86154e4a..8f1c06ce02 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 @@ -295,7 +295,6 @@ class LibraryUpdateService( } currentlyUpdatingManga.add(manga) - progressCount.andIncrement notifier.showProgressNotification( currentlyUpdatingManga, progressCount.get(), @@ -328,6 +327,7 @@ class LibraryUpdateService( } currentlyUpdatingManga.remove(manga) + progressCount.andIncrement notifier.showProgressNotification( currentlyUpdatingManga, progressCount.get(),