diff --git a/Jetcaster/mobile/src/main/java/com/example/jetcaster/ui/player/PlayerScreen.kt b/Jetcaster/mobile/src/main/java/com/example/jetcaster/ui/player/PlayerScreen.kt index f633e26b33..6a82a232cc 100644 --- a/Jetcaster/mobile/src/main/java/com/example/jetcaster/ui/player/PlayerScreen.kt +++ b/Jetcaster/mobile/src/main/java/com/example/jetcaster/ui/player/PlayerScreen.kt @@ -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 @@ -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 @@ -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