@@ -8,6 +8,7 @@ import androidx.compose.foundation.basicMarquee
88import androidx.compose.foundation.layout.Box
99import androidx.compose.foundation.layout.Column
1010import androidx.compose.foundation.layout.Row
11+ import androidx.compose.foundation.layout.Spacer
1112import androidx.compose.foundation.layout.WindowInsets
1213import androidx.compose.foundation.layout.WindowInsetsSides
1314import androidx.compose.foundation.layout.fillMaxSize
@@ -100,7 +101,8 @@ fun MiniPlayer(
100101 MiniMediaInfo (
101102 mediaMetadata = it,
102103 error = error,
103- modifier = Modifier .padding(horizontal = 6 .dp)
104+ modifier = Modifier .padding(horizontal = 6 .dp),
105+ showCover = false
104106 )
105107 }
106108 }
@@ -145,20 +147,25 @@ fun MiniPlayer(
145147fun MiniMediaInfo (
146148 mediaMetadata : MediaMetadata ,
147149 error : PlaybackException ? ,
148- modifier : Modifier = Modifier
150+ modifier : Modifier = Modifier ,
151+ showCover : Boolean = true
149152) {
150153 Row (
151154 verticalAlignment = Alignment .CenterVertically ,
152155 modifier = modifier
153156 ) {
154157 Box (modifier = Modifier .padding(6 .dp)) {
155- AsyncImage (
156- model = mediaMetadata.coverUrl.smallImage(),
157- contentDescription = null ,
158- modifier = Modifier
159- .size(48 .dp)
160- .clip(RoundedCornerShape (ThumbnailCornerRadius ))
161- )
158+ Spacer (modifier = Modifier .size(48 .dp))
159+
160+ if (showCover) {
161+ AsyncImage (
162+ model = mediaMetadata.coverUrl.smallImage(),
163+ contentDescription = null ,
164+ modifier = Modifier
165+ .size(48 .dp)
166+ .clip(RoundedCornerShape (ThumbnailCornerRadius ))
167+ )
168+ }
162169 androidx.compose.animation.AnimatedVisibility (
163170 visible = error != null ,
164171 enter = fadeIn(),
0 commit comments