Avoid downloading a duplicate thumbnail (#59)
This commit is contained in:
@@ -138,7 +138,7 @@ fun PlayerView(
|
|||||||
.height(Dimensions.collapsedPlayer)
|
.height(Dimensions.collapsedPlayer)
|
||||||
) {
|
) {
|
||||||
AsyncImage(
|
AsyncImage(
|
||||||
model = mediaItem.mediaMetadata.artworkUri.thumbnail(Dimensions.thumbnails.player.songPreview.px),
|
model = mediaItem.mediaMetadata.artworkUri.thumbnail(Dimensions.thumbnails.song.px),
|
||||||
contentDescription = null,
|
contentDescription = null,
|
||||||
contentScale = ContentScale.Crop,
|
contentScale = ContentScale.Crop,
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ object Dimensions {
|
|||||||
val playlist = album
|
val playlist = album
|
||||||
|
|
||||||
object player {
|
object player {
|
||||||
val songPreview = collapsedPlayer
|
|
||||||
val song: Dp
|
val song: Dp
|
||||||
@Composable
|
@Composable
|
||||||
get() = with(LocalConfiguration.current) {
|
get() = with(LocalConfiguration.current) {
|
||||||
|
|||||||
Reference in New Issue
Block a user