fix(android): NowPlaying shows album above artists, matching the web player
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
f21174bd2c
commit
14fd5119f2
1 file changed
+10
-8
@@ -258,6 +258,16 @@ fun NowPlayingScreen(
|
|||||||
maxLines = 1, overflow = TextOverflow.Ellipsis,
|
maxLines = 1, overflow = TextOverflow.Ellipsis,
|
||||||
)
|
)
|
||||||
Spacer(Modifier.height(3.dp))
|
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()) {
|
if (song != null && !song.artist.isNullOrBlank()) {
|
||||||
// Prefer OpenSubsonic artists array (has IDs per contributor).
|
// Prefer OpenSubsonic artists array (has IDs per contributor).
|
||||||
// Fall back to splitting artist string by ';' (same as web app).
|
// 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) {
|
if (onStarToggle != null && song != null) {
|
||||||
val starOverrides by com.novasonic.app.data.StarState.overrides.collectAsState()
|
val starOverrides by com.novasonic.app.data.StarState.overrides.collectAsState()
|
||||||
|
|||||||
Reference in new issue
Block a user