fix(mobile): restore player sharing and prevent long-press playback

This commit is contained in:
joshuafhiggins committed 2026-11-11 15:05:25 -05:00 Verified
1 parent d5c956c691
commit 034f583ecc
2 files changed
+12

No files matched your search

+7
View File
@@ -543,6 +543,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={{
@@ -550,6 +556,7 @@ function SongMeta({
album: { id: song.album.id },
}}
includeActions={[
"share",
"play-next",
"play-last",
"shuffle",
+5
View File
@@ -17,6 +17,8 @@ import {
type MediaMenuConfig,
} from "@/components/media-context-menu"
function consumeLongPress() {}
export const SongRow = memo(function SongRow({
song,
onPress,
@@ -78,6 +80,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)}