Adding hex index for the Video Feed
This commit is contained in:
@@ -174,7 +174,10 @@ fun SlidingCarousel(
|
|||||||
pageCount = feed.value.size,
|
pageCount = feed.value.size,
|
||||||
state = pagerState,
|
state = pagerState,
|
||||||
beyondBoundsPageCount = 1,
|
beyondBoundsPageCount = 1,
|
||||||
modifier = Modifier.fillMaxSize(1f)
|
modifier = Modifier.fillMaxSize(1f),
|
||||||
|
key = { index ->
|
||||||
|
feed.value.getOrNull(index)?.idHex ?: "$index"
|
||||||
|
}
|
||||||
) { index ->
|
) { index ->
|
||||||
feed.value.getOrNull(index)?.let { note ->
|
feed.value.getOrNull(index)?.let { note ->
|
||||||
RenderVideoOrPictureNote(note, accountViewModel, navController)
|
RenderVideoOrPictureNote(note, accountViewModel, navController)
|
||||||
|
|||||||
Reference in New Issue
Block a user