diff --git a/androidApp/src/main/baselineProfiles/ComposeActivityBaselineProfileGenerator_profileGenerator-baseline-prof.txt b/androidApp/src/main/baselineProfiles/ComposeActivityBaselineProfileGenerator_profileGenerator-baseline-prof.txt index 23f6a8af4..b24b1cf5a 100644 --- a/androidApp/src/main/baselineProfiles/ComposeActivityBaselineProfileGenerator_profileGenerator-baseline-prof.txt +++ b/androidApp/src/main/baselineProfiles/ComposeActivityBaselineProfileGenerator_profileGenerator-baseline-prof.txt @@ -3337,7 +3337,7 @@ HSPLandroidx/compose/runtime/collection/MutableVector$VectorListIterator;->hasNe PLandroidx/compose/runtime/collection/MutableVector$VectorListIterator;->hasNext()Z HSPLandroidx/compose/runtime/collection/MutableVector$VectorListIterator;->next()Ljava/lang/Object; PLandroidx/compose/runtime/collection/MutableVector$VectorListIterator;->next()Ljava/lang/Object; -Landroidx/compose/runtime/external/kotlinx/collections/immutable/List; +Landroidx/compose/runtime/external/kotlinx/collections/immutable/ImmutableList; Landroidx/compose/runtime/external/kotlinx/collections/immutable/ImmutableSet; Landroidx/compose/runtime/external/kotlinx/collections/immutable/PersistentList; Landroidx/compose/runtime/external/kotlinx/collections/immutable/PersistentMap; diff --git a/features/about/src/main/java/com/m3u/features/about/AboutScreen.kt b/features/about/src/main/java/com/m3u/features/about/AboutScreen.kt index 5a150361a..51f5b5e26 100644 --- a/features/about/src/main/java/com/m3u/features/about/AboutScreen.kt +++ b/features/about/src/main/java/com/m3u/features/about/AboutScreen.kt @@ -36,16 +36,16 @@ internal fun AboutRoute( val dependencies by viewModel.dependencies.collectAsStateWithLifecycle() AboutScreen( - contributors = contributors, - dependencies = dependencies, + contributorsFactory = { contributors }, + dependenciesFactory = { dependencies }, modifier = modifier.fillMaxSize() ) } @Composable private fun AboutScreen( - contributors: List, - dependencies: List, + contributorsFactory: () -> List, + dependenciesFactory: () -> List, modifier: Modifier = Modifier ) { val spacing = LocalSpacing.current @@ -55,6 +55,8 @@ private fun AboutScreen( verticalArrangement = Arrangement.spacedBy(spacing.small), contentPadding = PaddingValues(horizontal = spacing.medium) ) { + val contributors = contributorsFactory() + val dependencies = dependenciesFactory() items(contributors) { contributor -> ContributorItem( contributor = contributor,