mirror of
https://github.com/bbara04/Purefin.git
synced 2026-07-23 19:26:50 +00:00
refactor: remove badge text from TvHomeSections and clean up related code
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user