mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 15:29:15 +01:00
address feedback: optimistic star and menu polish
- star/unstar updates the local row immediately and rolls back with a toast if the server rejects it, instead of waiting on the response - the menu collapses with an animation on dismiss - star/unstar keeps the menu open and toggles its item in place - the album/artist rows show the target's name instead of "View album"/"View artist" - the menu header shows the cover art thumbnail
This commit is contained in:
@@ -116,7 +116,7 @@ fun ArtistDetailRoute(
|
||||
onBack = onBack,
|
||||
onAlbumClick = onAlbumClick,
|
||||
onAlbumLongClick = { menuTarget = it },
|
||||
onMore = { artist?.let { menuTarget = MenuTarget.Artist(it) } },
|
||||
onMore = { artist?.let { menuTarget = MenuTarget.Artist(it, artThumbnail ?: art) } },
|
||||
)
|
||||
menuTarget?.let { target ->
|
||||
ItemContextMenu(target = target, actions = actions, onDismiss = { menuTarget = null })
|
||||
@@ -238,7 +238,7 @@ fun ArtistDetailScreen(
|
||||
end = if (index % 2 == 1) 16.dp else 0.dp,
|
||||
).combinedClickable(
|
||||
onClick = { onAlbumClick(album) },
|
||||
onLongClick = { onAlbumLongClick(MenuTarget.Album(album)) },
|
||||
onLongClick = { onAlbumLongClick(MenuTarget.Album(album, coverArt(album.coverArt, true))) },
|
||||
),
|
||||
) {
|
||||
CoverArt(
|
||||
|
||||
Reference in New Issue
Block a user