Skip to content

Commit

Permalink
fix(amend): replace unstable parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyroid committed Nov 3, 2023
1 parent b59f9c5 commit 6c228bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Contributor>,
dependencies: List<String>,
contributorsFactory: () -> List<Contributor>,
dependenciesFactory: () -> List<String>,
modifier: Modifier = Modifier
) {
val spacing = LocalSpacing.current
Expand All @@ -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,
Expand Down

0 comments on commit 6c228bd

Please sign in to comment.