mirror of
https://github.com/bbara04/Purefin.git
synced 2026-07-23 19:26:50 +00:00
Revert "feat: filter watched items from the Continue Watching section"
This reverts commit 41f7129b08.
This commit is contained in:
@@ -26,11 +26,9 @@ fun ContinueWatchingSection(
|
||||
) {
|
||||
if (items.isEmpty()) return
|
||||
|
||||
val filteredItems = items.filter { !it.watched }
|
||||
|
||||
val listState = rememberLazyListState()
|
||||
|
||||
LaunchedEffect(filteredItems) {
|
||||
LaunchedEffect(items) {
|
||||
listState.scrollToItem(index = 0)
|
||||
}
|
||||
|
||||
@@ -46,7 +44,7 @@ fun ContinueWatchingSection(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
state = listState
|
||||
) {
|
||||
itemsIndexed(items = filteredItems, key = { _, item -> item.id }) { index, item ->
|
||||
itemsIndexed(items = items, key = { _, item -> item.id }) { index, item ->
|
||||
ContinueWatchingCard(
|
||||
item = item,
|
||||
sharedBoundsKey = homeMediaSharedBoundsKey("continue-$index", item.id),
|
||||
|
||||
Reference in New Issue
Block a user