Skip to content

Commit 81aafd6

Browse files
committed
Replace hardcoded "no name" fallback with string resource
Use the existing R.string.unknown resource, consistent with how the subtitle line and other parts of the app handle missing names.
1 parent 93c4f68 commit 81aafd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • android/app/src/main/java/com/simplecityapps/shuttle/ui/screens/library/songs

android/app/src/main/java/com/simplecityapps/shuttle/ui/screens/library/songs/SongListItem.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ fun SongListItem(
115115
) {
116116
Text(
117117
modifier = Modifier.fillMaxWidth(),
118-
text = song.name ?: "no name", // FIXME
118+
text = song.name ?: stringResource(R.string.unknown),
119119
style = MaterialTheme.typography.bodyMedium,
120120
color = MaterialTheme.colorScheme.onBackground,
121121
)

0 commit comments

Comments
 (0)