Simplify "and n more" string

This commit is contained in:
arkon
2020-02-17 11:29:11 -05:00
parent 7f115f2e83
commit 3b334c4230
2 changed files with 2 additions and 6 deletions

View File

@ -469,8 +469,7 @@ class LibraryUpdateService(
setContentTitle(manga.title)
val chaptersNames = if (chapterNames.size > 5) {
"${chapterNames.take(4).joinToString(", ")}, " +
resources.getQuantityString(R.plurals.notification_and_n_more,
(chapterNames.size - 4), (chapterNames.size - 4))
resources.getString(R.string.notification_and_n_more, (chapterNames.size - 4))
} else chapterNames.joinToString(", ")
setContentText(chaptersNames)
setStyle(NotificationCompat.BigTextStyle().bigText(chaptersNames))