mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 07:29:14 +01:00
pluralize the album and song counts in the list views
This commit is contained in:
@@ -87,7 +87,7 @@ fun ArtistsContent(
|
|||||||
},
|
},
|
||||||
supportingContent = {
|
supportingContent = {
|
||||||
Text(
|
Text(
|
||||||
text = "${artist.albumCount} albums",
|
text = "${artist.albumCount} ${if (artist.albumCount == 1L) "album" else "albums"}",
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
overflow = TextOverflow.Ellipsis,
|
overflow = TextOverflow.Ellipsis,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -85,7 +85,9 @@ fun PlaylistsContent(
|
|||||||
},
|
},
|
||||||
supportingContent = {
|
supportingContent = {
|
||||||
Text(
|
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,
|
maxLines = 1,
|
||||||
overflow = TextOverflow.Ellipsis,
|
overflow = TextOverflow.Ellipsis,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user