Skip to content

Commit

Permalink
[Jetcaster] Add PlayerScreen Album Default Image (#1403)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkoren authored May 20, 2024
2 parents 457ed0a + a25fd34 commit b7adb98
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ import androidx.compose.ui.draw.alpha
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.ColorFilter
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.semantics.Role
import androidx.compose.ui.semantics.role
Expand All @@ -93,13 +92,12 @@ import androidx.window.core.layout.WindowSizeClass
import androidx.window.core.layout.WindowWidthSizeClass
import androidx.window.layout.DisplayFeature
import androidx.window.layout.FoldingFeature
import coil.compose.AsyncImage
import coil.request.ImageRequest
import com.example.jetcaster.R
import com.example.jetcaster.core.player.EpisodePlayerState
import com.example.jetcaster.core.player.model.PlayerEpisode
import com.example.jetcaster.designsystem.component.HtmlTextContainer
import com.example.jetcaster.designsystem.component.ImageBackgroundColorScrim
import com.example.jetcaster.designsystem.component.PodcastImage
import com.example.jetcaster.ui.theme.JetcasterTheme
import com.example.jetcaster.ui.tooling.DevicePreviews
import com.example.jetcaster.util.isBookPosture
Expand Down Expand Up @@ -600,11 +598,8 @@ private fun PlayerImage(
podcastImageUrl: String,
modifier: Modifier = Modifier
) {
AsyncImage(
model = ImageRequest.Builder(LocalContext.current)
.data(podcastImageUrl)
.crossfade(true)
.build(),
PodcastImage(
podcastImageUrl = podcastImageUrl,
contentDescription = null,
contentScale = ContentScale.Crop,
modifier = modifier
Expand Down

0 comments on commit b7adb98

Please sign in to comment.