mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 15:29:15 +01:00
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:
@@ -319,14 +319,6 @@ fun NowPlayingScreen(
|
|||||||
Text(formatTime(positionMs), style = MaterialTheme.typography.bodySmall)
|
Text(formatTime(positionMs), style = MaterialTheme.typography.bodySmall)
|
||||||
Text(formatTime(state.durationMs), 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(
|
Row(
|
||||||
modifier = Modifier.fillMaxWidth().padding(top = 2.dp, bottom = 8.dp),
|
modifier = Modifier.fillMaxWidth().padding(top = 2.dp, bottom = 8.dp),
|
||||||
horizontalArrangement = Arrangement.SpaceBetween,
|
horizontalArrangement = Arrangement.SpaceBetween,
|
||||||
|
|||||||
Reference in New Issue
Block a user