Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions app/src/main/kotlin/com/arflix/tv/ui/components/MediaCard.kt
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ fun MediaCard(
* Placeholder card shown while Continue Watching data loads.
* Displays a skeleton animation to indicate loading state.
*/
@OptIn(ExperimentalTvMaterial3Api::class)
@Composable
private fun PlaceholderCard(
width: Dp,
Expand Down Expand Up @@ -548,6 +549,15 @@ fun PosterCard(
modifier: Modifier = Modifier,
useWhiteBorder: Boolean = true,
) {
if (item.isPlaceholder) {
PlaceholderCard(
width = width,
isLandscape = false,
modifier = modifier
)
return
}

var isFocused by remember { mutableStateOf(false) }
val visualFocused = isFocusedOverride || isFocused

Expand Down
Loading
Loading