Skip to content

Commit

Permalink
fix(thumbnail): closes #7
Browse files Browse the repository at this point in the history
  • Loading branch information
Malopieds committed Mar 22, 2024
1 parent b103664 commit 7045950
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/com/zionhuang/music/ui/player/Thumbnail.kt
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ fun Thumbnail(
}

DisposableEffect(showLyrics) {
println(currentWindowIndex)
currentView.keepScreenOn = showLyrics
onDispose {
currentView.keepScreenOn = false
Expand Down Expand Up @@ -107,11 +108,10 @@ fun Thumbnail(
val model = if (currentWindowIndex == index){
mediaMetadata?.thumbnailUrl
} else {
windows[index].mediaItem.metadata?.thumbnailUrl
windows[currentWindowIndex].mediaItem.metadata?.thumbnailUrl
}
AsyncImage(
model = windows[index].mediaItem.metadata?.thumbnailUrl,
// model = model,
model = model,
contentDescription = null,
modifier = Modifier
.fillMaxWidth()
Expand Down

0 comments on commit 7045950

Please sign in to comment.