Chop long titles in library update notification, fix incrementing when updating covers
(cherry picked from commit 117fd4bd0fe0be3d1f14f8fba736a813332730a0)
This commit is contained in:
parent
61a6f1ce4e
commit
d8054b3f7b
@ -75,7 +75,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.chop(40) }
|
||||
progressNotificationBuilder
|
||||
.setContentTitle(context.getString(R.string.notification_updating, current, total))
|
||||
.setStyle(NotificationCompat.BigTextStyle().bigText(updatingText))
|
||||
|
@ -521,7 +521,6 @@ class LibraryUpdateService(
|
||||
}
|
||||
|
||||
currentlyUpdatingManga.add(manga)
|
||||
progressCount.andIncrement
|
||||
notifier.showProgressNotification(
|
||||
currentlyUpdatingManga,
|
||||
progressCount.get(),
|
||||
@ -545,6 +544,7 @@ class LibraryUpdateService(
|
||||
}
|
||||
|
||||
currentlyUpdatingManga.remove(manga)
|
||||
progressCount.andIncrement
|
||||
notifier.showProgressNotification(
|
||||
currentlyUpdatingManga,
|
||||
progressCount.get(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user