mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
parent
b4fd3d2220
commit
54b7288acd
1 changed files with 9 additions and 1 deletions
|
@ -620,6 +620,7 @@ class MangaDetailsController :
|
|||
}
|
||||
1 -> return
|
||||
else -> {
|
||||
val chapterNames = deletedChapters.map { it.name }
|
||||
context.materialAlertDialog()
|
||||
.setCustomTitleAndMessage(
|
||||
R.string.chapters_removed,
|
||||
|
@ -627,7 +628,14 @@ class MangaDetailsController :
|
|||
R.plurals.deleted_chapters,
|
||||
deletedChapters.size,
|
||||
deletedChapters.size,
|
||||
deletedChapters.joinToString("\n") { it.name }
|
||||
if (deletedChapters.size > 5) {
|
||||
"${chapterNames.take(5 - 1).joinToString(", ")}, " +
|
||||
context.resources.getQuantityString(
|
||||
R.plurals.notification_and_n_more,
|
||||
(chapterNames.size - (4 - 1)),
|
||||
(chapterNames.size - (4 - 1))
|
||||
)
|
||||
} else chapterNames.joinToString(", ")
|
||||
)
|
||||
)
|
||||
.setPositiveButton(R.string.delete) { dialog, _ ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue