Compare commits
1
Commits
No files matched your search
@@ -567,6 +567,12 @@ function SongMeta({
|
||||
/>
|
||||
</Pressable>
|
||||
<MediaActionMenu
|
||||
share={{
|
||||
type: "song",
|
||||
songId: song.id,
|
||||
albumId: song.album.id,
|
||||
title: song.title,
|
||||
}}
|
||||
stationArtistId={song.artist.id}
|
||||
favorited={favorited}
|
||||
navigation={{
|
||||
@@ -574,6 +580,7 @@ function SongMeta({
|
||||
album: { id: song.album.id },
|
||||
}}
|
||||
includeActions={[
|
||||
"share",
|
||||
"play-next",
|
||||
"play-last",
|
||||
"shuffle",
|
||||
|
||||
@@ -22,6 +22,8 @@ import {
|
||||
type MediaMenuConfig,
|
||||
} from "@/components/media-context-menu"
|
||||
|
||||
function consumeLongPress() {}
|
||||
|
||||
export const SongRow = memo(function SongRow({
|
||||
song,
|
||||
onPress,
|
||||
@@ -83,6 +85,9 @@ export const SongRow = memo(function SongRow({
|
||||
inset ? styles.insetRow : [styles.row, { borderBottomColor: divider }]
|
||||
}
|
||||
onPress={onPress}
|
||||
// Consume the long press so releasing a native context menu cannot play
|
||||
// the row through React Native's still-active press responder.
|
||||
onLongPress={contextMenu ? consumeLongPress : undefined}
|
||||
>
|
||||
<CoverImage
|
||||
uri={albumCoverUrl(config.serverUrl, song.album.id)}
|
||||
|
||||
Reference in new issue
Block a user