From eb32aed07c777626dbbf81da56e0ac8a6b6e2026 Mon Sep 17 00:00:00 2001 From: avi Date: Tue, 8 Sep 2026 09:39:26 -0500 Subject: [PATCH] fix(ui): mini-player attributes track to its station MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Radio subtitle is now 'artist · Station' so a track name never looks like it contradicts the station shown in the list/hub. --- .../main/java/com/rada/ui/player/NowPlayingBar.kt | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/rada/ui/player/NowPlayingBar.kt b/app/src/main/java/com/rada/ui/player/NowPlayingBar.kt index a3cbde2..c7f0834 100644 --- a/app/src/main/java/com/rada/ui/player/NowPlayingBar.kt +++ b/app/src/main/java/com/rada/ui/player/NowPlayingBar.kt @@ -72,9 +72,17 @@ fun NowPlayingBar( subtitle = localMedia?.second.orEmpty() } else { val meta = streamMeta - title = meta?.displayTitle?.takeIf { it.isNotEmpty() } ?: stationName - subtitle = if (meta != null && meta.displayTitle.isNotEmpty()) - meta.displayArtist.ifEmpty { stationName } else "" + val track = meta?.displayTitle?.takeIf { it.isNotEmpty() } + if (track != null) { + // Radio playing a tagged track: track on top, "artist · Station" + // below so the track is always attributable to its station. + title = track + val artist = meta?.displayArtist.orEmpty() + subtitle = if (artist.isNotEmpty()) "$artist · $stationName" else stationName + } else { + title = stationName + subtitle = "" + } } AnimatedVisibility(