mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 11:17:25 +01:00
Chop long titles in library update notification, fix incrementing when updating covers
This commit is contained in:
parent
bd424ce460
commit
117fd4bd0f
@ -74,7 +74,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.chop(40) }
|
||||||
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))
|
||||||
|
@ -416,7 +416,6 @@ class LibraryUpdateService(
|
|||||||
}
|
}
|
||||||
|
|
||||||
currentlyUpdatingManga.add(manga)
|
currentlyUpdatingManga.add(manga)
|
||||||
progressCount.andIncrement
|
|
||||||
notifier.showProgressNotification(
|
notifier.showProgressNotification(
|
||||||
currentlyUpdatingManga,
|
currentlyUpdatingManga,
|
||||||
progressCount.get(),
|
progressCount.get(),
|
||||||
@ -440,6 +439,7 @@ class LibraryUpdateService(
|
|||||||
}
|
}
|
||||||
|
|
||||||
currentlyUpdatingManga.remove(manga)
|
currentlyUpdatingManga.remove(manga)
|
||||||
|
progressCount.andIncrement
|
||||||
notifier.showProgressNotification(
|
notifier.showProgressNotification(
|
||||||
currentlyUpdatingManga,
|
currentlyUpdatingManga,
|
||||||
progressCount.get(),
|
progressCount.get(),
|
||||||
|
Loading…
Reference in New Issue
Block a user