From 14fd5119f29072711cdff8a41d662f6044c93c24 Mon Sep 17 00:00:00 2001 From: Honey Date: Sat, 25 Jul 2026 14:09:27 +0200 Subject: [PATCH] fix(android): NowPlaying shows album above artists, matching the web player MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reordered the NowPlaying track info to title → album → artists (was title → artists → album), so the Android layout matches the PC/web player. Co-Authored-By: Claude Opus 4.8 --- .../app/ui/screen/NowPlayingScreen.kt | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/android/app/src/main/kotlin/com/novasonic/app/ui/screen/NowPlayingScreen.kt b/android/app/src/main/kotlin/com/novasonic/app/ui/screen/NowPlayingScreen.kt index 4d0d7cc..71bd088 100644 --- a/android/app/src/main/kotlin/com/novasonic/app/ui/screen/NowPlayingScreen.kt +++ b/android/app/src/main/kotlin/com/novasonic/app/ui/screen/NowPlayingScreen.kt @@ -258,6 +258,16 @@ fun NowPlayingScreen( maxLines = 1, overflow = TextOverflow.Ellipsis, ) Spacer(Modifier.height(3.dp)) + // Order matches the web player: title → album → artists. + if (!song?.album.isNullOrBlank()) { + Text( + song!!.album!!, + fontFamily = Outfit, fontSize = 12.sp, + color = Color.White.copy(alpha = 0.45f), + maxLines = 1, overflow = TextOverflow.Ellipsis, + ) + Spacer(Modifier.height(3.dp)) + } if (song != null && !song.artist.isNullOrBlank()) { // Prefer OpenSubsonic artists array (has IDs per contributor). // Fall back to splitting artist string by ';' (same as web app). @@ -303,14 +313,6 @@ fun NowPlayingScreen( } } } - if (!song?.album.isNullOrBlank()) { - Text( - song!!.album!!, - fontFamily = Outfit, fontSize = 12.sp, - color = Color.White.copy(alpha = 0.45f), - maxLines = 1, overflow = TextOverflow.Ellipsis, - ) - } } if (onStarToggle != null && song != null) { val starOverrides by com.novasonic.app.data.StarState.overrides.collectAsState()