refactor: remove badge text from TvHomeSections and clean up related code

This commit is contained in:
2026-04-06 12:25:36 +02:00
parent cf296c3286
commit bdef25d36a

View File

@@ -97,7 +97,6 @@ fun TvContinueWatchingSection(
else -> null else -> null
}, },
badgeText = if (progressFraction > 0f) "Resume" else null,
progress = progressFraction, progress = progressFraction,
imageModifier = Modifier imageModifier = Modifier
.then( .then(
@@ -155,7 +154,6 @@ fun TvNextUpSection(
title = item.primaryText, title = item.primaryText,
supporting = item.secondaryText, supporting = item.secondaryText,
imageUrl = item.imageUrl, imageUrl = item.imageUrl,
badgeText = "Next Up",
imageModifier = Modifier imageModifier = Modifier
.then( .then(
if (index == 0 && firstItemFocusRequester != null) { if (index == 0 && firstItemFocusRequester != null) {
@@ -283,7 +281,6 @@ private fun TvHomeLandscapeCard(
imageUrl: String?, imageUrl: String?,
modifier: Modifier = Modifier, modifier: Modifier = Modifier,
imageModifier: Modifier = Modifier, imageModifier: Modifier = Modifier,
badgeText: String? = null,
progress: Float? = null, progress: Float? = null,
onFocusedItem: () -> Unit = {}, onFocusedItem: () -> Unit = {},
onClick: () -> Unit, onClick: () -> Unit,
@@ -342,15 +339,6 @@ private fun TvHomeLandscapeCard(
) )
) )
) )
badgeText?.let { badge ->
TvHomeMetaChip(
text = badge,
modifier = Modifier
.align(Alignment.TopStart)
.padding(8.dp),
highlighted = isFocused
)
}
if (progress != null && progress > 0f) { if (progress != null && progress > 0f) {
MediaProgressBar( MediaProgressBar(
progress = progress, progress = progress,