Skip to content

android: Update track subtitles based on context - #28

Merged
tahadx merged 2 commits into
cliamp:mainfrom
codefriendly:fix/artist-album-subtitles
Oct 17, 2026
Merged

tahadx merged 2 commits into
cliamp:mainfrom
codefriendly:fix/artist-album-subtitles

Conversation

@rholak

@rholak rholak commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Make local-library track subtitles specific to the current view:

  • Artist pages: show album artist · album, falling back to track artist when album artist is missing.
  • Album pages: show track artist only, avoiding the redundant album title.

Adds an optional subtitle parameter to PlaylistMemberRow; other views remain unchanged.

Verification

  • :app:assembleDebug passed.
  • :app:testDebugUnitTest passed, including new coverage for artist precedence, fallback, blank fields, and unchanged existing formatting.
  • Installed on a physical Android phone and visually verified both views.

Artist pages showed track artist instead of album artist, while album pages repeated the album title in every track row.

Allow callers to override PlaylistMemberRow subtitles. Artist pages now show album artist and album, falling back to track artist when needed; album pages show track artist only. Other callers retain their existing subtitles.

Verified with :app:assembleDebug through the managed Gradle wrapper and installation on a USB phone. Both views were visually confirmed by the user. Unit tests were not run.
The new album-artist subtitle formatter lacked automated coverage for metadata precedence and missing fields.

Add tests for album-artist precedence, track-artist fallback, blank-field separator handling, and unchanged track-artist formatting.

Verified :app:testDebugUnitTest through the managed Gradle wrapper and git diff --check. All checks passed.
@tahadx

tahadx commented Oct 17, 2026

Copy link
Copy Markdown
Member

Perfect! thank you robert!

@tahadx
tahadx merged commit 838a647 into cliamp:main Oct 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants