mirror of
https://github.com/bbara04/Purefin.git
synced 2026-07-24 03:36:51 +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
|
if (items.isEmpty()) return
|
||||||
|
|
||||||
val filteredItems = items.filter { !it.watched }
|
|
||||||
|
|
||||||
val listState = rememberLazyListState()
|
val listState = rememberLazyListState()
|
||||||
|
|
||||||
LaunchedEffect(filteredItems) {
|
LaunchedEffect(items) {
|
||||||
listState.scrollToItem(index = 0)
|
listState.scrollToItem(index = 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,7 +44,7 @@ fun ContinueWatchingSection(
|
|||||||
modifier = Modifier.fillMaxWidth(),
|
modifier = Modifier.fillMaxWidth(),
|
||||||
state = listState
|
state = listState
|
||||||
) {
|
) {
|
||||||
itemsIndexed(items = filteredItems, key = { _, item -> item.id }) { index, item ->
|
itemsIndexed(items = items, key = { _, item -> item.id }) { index, item ->
|
||||||
ContinueWatchingCard(
|
ContinueWatchingCard(
|
||||||
item = item,
|
item = item,
|
||||||
sharedBoundsKey = homeMediaSharedBoundsKey("continue-$index", item.id),
|
sharedBoundsKey = homeMediaSharedBoundsKey("continue-$index", item.id),
|
||||||
|
|||||||
Reference in New Issue
Block a user