mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-10 23:21:59 +01:00
pluralize the album and song counts in the list views
This commit is contained in:
@@ -87,7 +87,7 @@ fun ArtistsContent(
|
||||
},
|
||||
supportingContent = {
|
||||
Text(
|
||||
text = "${artist.albumCount} albums",
|
||||
text = "${artist.albumCount} ${if (artist.albumCount == 1L) "album" else "albums"}",
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
)
|
||||
|
||||
@@ -85,7 +85,9 @@ fun PlaylistsContent(
|
||||
},
|
||||
supportingContent = {
|
||||
Text(
|
||||
text = playlist.comment?.takeIf { it.isNotBlank() } ?: "${playlist.songCount} songs",
|
||||
text =
|
||||
playlist.comment?.takeIf { it.isNotBlank() }
|
||||
?: "${playlist.songCount} ${if (playlist.songCount == 1L) "song" else "songs"}",
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user