diff --git a/cloudstream-extensions-phisher b/cloudstream-extensions-phisher new file mode 160000 index 00000000..da471dd5 --- /dev/null +++ b/cloudstream-extensions-phisher @@ -0,0 +1 @@ +Subproject commit da471dd5791e0be7f42cffb4f228a8f4d2291451 diff --git a/composeApp/src/commonMain/kotlin/com/nuvio/app/features/details/components/DetailCastSection.kt b/composeApp/src/commonMain/kotlin/com/nuvio/app/features/details/components/DetailCastSection.kt index 352eedb4..a1d384ae 100644 --- a/composeApp/src/commonMain/kotlin/com/nuvio/app/features/details/components/DetailCastSection.kt +++ b/composeApp/src/commonMain/kotlin/com/nuvio/app/features/details/components/DetailCastSection.kt @@ -9,7 +9,7 @@ import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.width import androidx.compose.foundation.lazy.LazyRow -import androidx.compose.foundation.lazy.items +import androidx.compose.foundation.lazy.itemsIndexed import androidx.compose.foundation.shape.CircleShape import androidx.compose.ui.draw.clip import androidx.compose.material3.MaterialTheme @@ -44,10 +44,10 @@ fun DetailCastSection( LazyRow( horizontalArrangement = Arrangement.spacedBy(sizing.avatarGap), ) { - items( + itemsIndexed( items = cast, - key = { it.name }, - ) { person -> + key = { index, person -> "${person.name}-${person.role.orEmpty()}-${person.photo.orEmpty()}-$index" }, + ) { _, person -> CastItem( person = person, sizing = sizing,