show playback errors only as a toast

Remove the inline error line so the now playing layout never has to resize around it; the toast already surfaces the message.
This commit is contained in:
austinried
2026-10-04 00:30:00 +00:00
parent 7fb832e116
commit 525c3fa0d4
@@ -319,14 +319,6 @@ fun NowPlayingScreen(
Text(formatTime(positionMs), style = MaterialTheme.typography.bodySmall)
Text(formatTime(state.durationMs), style = MaterialTheme.typography.bodySmall)
}
if (state.error != null) {
Text(
text = state.error,
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.error,
modifier = Modifier.padding(top = 8.dp),
)
}
Row(
modifier = Modifier.fillMaxWidth().padding(top = 2.dp, bottom = 8.dp),
horizontalArrangement = Arrangement.SpaceBetween,