Skip to content

Commit

Permalink
fix: queue issues & added now playing pure black
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafaalagamy authored Aug 9, 2024
1 parent 2480643 commit b0a341c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions app/src/main/java/com/metrolist/music/ui/component/Items.kt
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ import androidx.media3.exoplayer.offline.Download.STATE_QUEUED
import coil.compose.AsyncImage
import coil.compose.AsyncImagePainter
import coil.request.ImageRequest
import com.metrolist.innertube.YouTube
import com.metrolist.innertube.models.AlbumItem
import com.metrolist.innertube.models.ArtistItem
import com.metrolist.innertube.models.PlaylistItem
import com.metrolist.innertube.models.SongItem
import com.metrolist.innertube.models.YTItem
import com.malopieds.innertube.YouTube
import com.malopieds.innertube.models.AlbumItem
import com.malopieds.innertube.models.ArtistItem
import com.malopieds.innertube.models.PlaylistItem
import com.malopieds.innertube.models.SongItem
import com.malopieds.innertube.models.YTItem
import com.metrolist.music.LocalDatabase
import com.metrolist.music.LocalDownloadUtil
import com.metrolist.music.LocalPlayerConnection
Expand Down Expand Up @@ -980,21 +980,21 @@ fun PlaylistListItem(
}
when (playlist.thumbnails.size) {
0 ->
Box(
Box(
modifier =
Modifier
.size(ListThumbnailSize)
.clip(RoundedCornerShape(ThumbnailCornerRadius))
.background(MaterialTheme.colorScheme.surfaceColorAtElevation(6.dp))
) {
) {
Icon(
painter = painterResource(painter),
painter = painterResource(painter),
contentDescription = null,
modifier = Modifier
.size(ListThumbnailSize / 2)
.align(Alignment.Center)
)
}
}

1 ->
AsyncImage(
Expand Down

0 comments on commit b0a341c

Please sign in to comment.