mirror of
https://github.com/Boof2015/astra-mobile.git
synced 2026-08-22 21:45:27 +02:00
track controls
This commit is contained in:
@@ -111,6 +111,7 @@ export default function AlbumScreen() {
|
||||
active={item.path === currentPath}
|
||||
onPress={() => playFrom(index)}
|
||||
onLongPress={() => setActionTrack(item)}
|
||||
onOpenActions={() => setActionTrack(item)}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
|
||||
@@ -119,6 +119,7 @@ export default function ArtistScreen() {
|
||||
active={item.track.path === currentPath}
|
||||
onPress={() => playTrackListFrom(sourceTracks, item.index)}
|
||||
onLongPress={() => setActionTrack(item.track)}
|
||||
onOpenActions={() => setActionTrack(item.track)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -62,6 +62,7 @@ export default function ArtistAppearancesScreen() {
|
||||
active={item.path === currentPath}
|
||||
onPress={() => playFrom(index)}
|
||||
onLongPress={() => setActionTrack(item)}
|
||||
onOpenActions={() => setActionTrack(item)}
|
||||
/>
|
||||
)}
|
||||
ListEmptyComponent={<EmptyList label="No appearances found for this artist." />}
|
||||
|
||||
@@ -62,6 +62,7 @@ export default function ArtistSongsScreen() {
|
||||
active={item.path === currentPath}
|
||||
onPress={() => playFrom(index)}
|
||||
onLongPress={() => setActionTrack(item)}
|
||||
onOpenActions={() => setActionTrack(item)}
|
||||
/>
|
||||
)}
|
||||
ListEmptyComponent={<EmptyList label="No songs found for this artist." />}
|
||||
|
||||
@@ -175,6 +175,7 @@ export default function LibraryScreen() {
|
||||
active={item.path === currentPath}
|
||||
onPress={() => playAllFrom(index)}
|
||||
onLongPress={() => setActionTrack(item)}
|
||||
onOpenActions={() => setActionTrack(item)}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
|
||||
@@ -231,6 +231,7 @@ export default function PlaylistScreen() {
|
||||
active={item.track.path === currentPath}
|
||||
onPress={() => startPlayback(playableIndexByEntryId.get(item.id) ?? 0)}
|
||||
onLongPress={() => setActionEntry(item)}
|
||||
onOpenActions={() => setActionEntry(item)}
|
||||
/>
|
||||
) : (
|
||||
<MissingRow entry={item} onLongPress={() => setMissingEntry(item)} />
|
||||
|
||||
Reference in New Issue
Block a user