mirror of
https://github.com/Boof2015/astra-mobile.git
synced 2026-08-23 22:15:23 +02:00
fix now playing source label
This commit is contained in:
@@ -84,7 +84,10 @@ export default function AlbumScreen() {
|
||||
}, [tracks]);
|
||||
|
||||
const playFrom = (index: number) => {
|
||||
void playTracks(tracks.map(dbTrackToTrack), index);
|
||||
void playTracks(tracks.map(dbTrackToTrack), {
|
||||
startIndex: index,
|
||||
source: { kind: 'album', label: album?.album ?? tracks[0]?.album ?? 'Album' },
|
||||
});
|
||||
};
|
||||
|
||||
// Eligibility can filter an album out of the store list (a single reached via
|
||||
@@ -164,7 +167,10 @@ export default function AlbumScreen() {
|
||||
disabled={tracks.length === 0}
|
||||
onBack={handleBack}
|
||||
onPlay={() => playFrom(0)}
|
||||
onShuffle={() => void shuffleTracks(tracks.map(dbTrackToTrack))}
|
||||
onShuffle={() => void shuffleTracks(tracks.map(dbTrackToTrack), {
|
||||
kind: 'album',
|
||||
label: album?.album ?? tracks[0]?.album ?? 'Album',
|
||||
})}
|
||||
scrollY={scrollY}
|
||||
heroFaded={heroFaded}
|
||||
collapsed={collapsed}
|
||||
|
||||
Reference in New Issue
Block a user