Summarize verses on song playlist; 1,2,3→ 1-3

This commit is contained in:
Hasinjato 2026-10-13 10:48:07 +03:00
parent 981e22e191
commit e60acce0c8

View file

@ -333,7 +333,7 @@ fun SimpleDrawerContent(
contentTitle = di?.contentTitle ?: "chant introuvable",
selected = di != null && di.path == activePath,
enabled = di != null,
stz = song.entry.stanzas,
stzS = song.entry.stanzas.toSet(),
onClick = {
if (di != null) {
scope.launch {
@ -664,10 +664,11 @@ fun DrawerPlaylistSongRow(
contentTitle: String,
selected: Boolean,
enabled: Boolean,
stz: List<Int>,
stzS: Set<Int>,
onClick: () -> Unit,
) {
val verses = if(stz.isEmpty()) "" else ": ${stz.joinToString(", ")}"
val stz = summarizeVerses(stzS)
val verses = if(stzS.isEmpty()) "" else ": ${stz}"
NavigationDrawerItem(
icon = {
Text("♪", fontSize = 20.sp)