mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-11-05 18:30:59 +01:00
## Description Selecting a song from search now resolves to its album's detail page, scrolled to and focusing that song, instead of sending you to an "unsupported item type" page. Implemented in the shared BaseItem.destination() rather than in search specifically, so any caller that navigates to a song gets the same behavior. A song with no albumId plays directly while remaining in the search results page: NavigationManager.navigateTo() intercepts a bare AUDIO destination and hands it to a new MusicService.playSong(). Handling this in the single navigation funnel means every caller gets it for free with no loading-screen flash. Adds BaseItemDestinationTest covering the new destination() logic. ### Related issues https://github.com/damontecres/Wholphin/issues/1656 ### Testing Device: Sony Bravia 4K VH21 #### Tests on a search results page, song with albumId: 1. Select a song sends you to album page with cursor on song. Another press plays it 2. Back button brings you back to search results. Tested with both songs at the start of an album and songs deep into a 100+ songs album. #### Tests on a search results page, song with no albumId: 1. Select a songs plays the song while staying in the search results page. No loading screen. ## AI or LLM usage I used Cursor and Claude Code for planning, implementation and code review. --------- Co-authored-by: Damontecres <damontecres@gmail.com> |
||
|---|---|---|
| .. | ||
| java | ||
| resources | ||