Summarize verses on song playlist; 1,2,3→ 1-3
This commit is contained in:
parent
981e22e191
commit
e60acce0c8
1 changed files with 4 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue