mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 12:41:50 +01:00
Chopping off longer chapter updates in notifcations if theres more than 5 new chapters
Fix to french strings
This commit is contained in:
parent
28a4f0e237
commit
eba07485e0
@ -467,7 +467,11 @@ class LibraryUpdateService(
|
||||
setContentTitle(manga.title.chop(45))
|
||||
color = ContextCompat.getColor(this@LibraryUpdateService, R.color.colorAccentLight)
|
||||
setContentText(chapterNames.first())
|
||||
setStyle(NotificationCompat.BigTextStyle().bigText(chapterNames.joinToString("\n")))
|
||||
setStyle(NotificationCompat.BigTextStyle().bigText(
|
||||
if (chapterNames.size > 5) {
|
||||
"${chapterNames.take(4).joinToString(", ")}, " +
|
||||
getString(R.string.notification_and_n_more, (chapterNames.size - 4))
|
||||
} else chapterNames.joinToString(", ")))
|
||||
priority = NotificationCompat.PRIORITY_HIGH
|
||||
setGroup(Notifications.GROUP_NEW_CHAPTERS)
|
||||
setContentIntent(
|
||||
|
@ -466,8 +466,7 @@ class LibraryController(
|
||||
}
|
||||
|
||||
private fun startMangaMigration() {
|
||||
migratingMangas.clear()
|
||||
migratingMangas.addAll(selectedMangas)
|
||||
migratingMangas = selectedMangas.distinctBy { it.id }.toMutableSet()
|
||||
destroyActionModeIfNeeded()
|
||||
val manga = migratingMangas.firstOrNull() ?: return
|
||||
val searchController = SearchController(manga)
|
||||
|
@ -363,7 +363,7 @@
|
||||
<string name="backup_choice">Que voulez-vous sauvegarder ?</string>
|
||||
<string name="invalid_combination">Le défaut ne peut pas être selectionné avec des autres catégories</string>
|
||||
<string name="delete_downloads_for_manga">Supprimer les chapitres téléchargés ?</string>
|
||||
<string name="notification_new_chapters_text">Pour %1$s chapitres</string>
|
||||
<string name="notification_new_chapters_text">Pour %1$d chapitres</string>
|
||||
<string name="track">Suivi</string>
|
||||
<string name="action_sort_total">Nombre de chapitres</string>
|
||||
<string name="short_recent_updates">Actualisations</string>
|
||||
|
@ -474,6 +474,7 @@
|
||||
<string name="notification_update_progress">Update progress: %1$d/%2$d</string>
|
||||
<string name="notification_new_chapters">New chapters found</string>
|
||||
<string name="notification_new_chapters_text">For %1$d titles</string>
|
||||
<string name="notification_and_n_more">and %1$d more.</string>
|
||||
<string name="notification_cover_update_failed">Failed to update cover</string>
|
||||
<string name="notification_first_add_to_library">Please add the manga to your library before doing this</string>
|
||||
<string name="notification_not_connected_to_ac_title">Sync canceled</string>
|
||||
|
Loading…
Reference in New Issue
Block a user