Update Libary update notification. (#5545)
* Update LibraryUpdateNotifier.kt * Update LibraryUpdateService.kt (cherry picked from commit 1dddba7f251dbda4b935db5f86bd7937fec73fab)
This commit is contained in:
parent
10a927f9d7
commit
1587923162
@ -75,7 +75,7 @@ class LibraryUpdateNotifier(private val context: Context) {
|
|||||||
.setContentTitle(context.getString(R.string.notification_check_updates))
|
.setContentTitle(context.getString(R.string.notification_check_updates))
|
||||||
.setContentText("($current/$total)")
|
.setContentText("($current/$total)")
|
||||||
} else {
|
} else {
|
||||||
val updatingText = manga.joinToString("\n") { it.title }
|
val updatingText = manga.joinToString("\n") { "• ${it.title}" }
|
||||||
progressNotificationBuilder
|
progressNotificationBuilder
|
||||||
.setContentTitle(context.getString(R.string.notification_updating, current, total))
|
.setContentTitle(context.getString(R.string.notification_updating, current, total))
|
||||||
.setStyle(NotificationCompat.BigTextStyle().bigText(updatingText))
|
.setStyle(NotificationCompat.BigTextStyle().bigText(updatingText))
|
||||||
|
@ -374,7 +374,6 @@ class LibraryUpdateService(
|
|||||||
}
|
}
|
||||||
|
|
||||||
currentlyUpdatingManga.add(manga)
|
currentlyUpdatingManga.add(manga)
|
||||||
progressCount.andIncrement
|
|
||||||
notifier.showProgressNotification(
|
notifier.showProgressNotification(
|
||||||
currentlyUpdatingManga,
|
currentlyUpdatingManga,
|
||||||
progressCount.get(),
|
progressCount.get(),
|
||||||
@ -410,6 +409,7 @@ class LibraryUpdateService(
|
|||||||
}
|
}
|
||||||
|
|
||||||
currentlyUpdatingManga.remove(manga)
|
currentlyUpdatingManga.remove(manga)
|
||||||
|
progressCount.andIncrement
|
||||||
notifier.showProgressNotification(
|
notifier.showProgressNotification(
|
||||||
currentlyUpdatingManga,
|
currentlyUpdatingManga,
|
||||||
progressCount.get(),
|
progressCount.get(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user