Skip to content

Commit edaf06a

Browse files
authored
Show music video watch status on artist & album pages (#1209)
## Description Show the watched indicator and favorite icon on music videos on both the artist or album detail pages. ### Related issues Fixes #1206 ### Testing Quick emulator testing ## Screenshots N/A, same indicators as the rest of the app ## AI or LLM usage None
1 parent ac13ce5 commit edaf06a

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

app/src/main/java/com/github/damontecres/wholphin/ui/detail/music/AlbumDetailsPage.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,9 @@ fun AlbumDetailsPage(
539539
onClick = onClick,
540540
onLongClick = onLongClick,
541541
aspectRatio = AspectRatios.WIDE,
542+
played = item?.played ?: false,
543+
playPercent = item?.data?.userData?.playedPercentage ?: 0.0,
544+
favorite = item?.favorite ?: false,
542545
modifier = mod,
543546
)
544547
},

app/src/main/java/com/github/damontecres/wholphin/ui/detail/music/ArtistDetailsPage.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,9 @@ fun ArtistDetailsPage(
568568
onClick = onClick,
569569
onLongClick = onLongClick,
570570
aspectRatio = AspectRatios.WIDE,
571+
played = item?.played ?: false,
572+
playPercent = item?.data?.userData?.playedPercentage ?: 0.0,
573+
favorite = item?.favorite ?: false,
571574
modifier = mod,
572575
)
573576
},

0 commit comments

Comments
 (0)