Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb9a751f authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[Spa] support header but not include category UI." into main

parents b9d409fd 57c246e7
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -142,6 +142,7 @@ fun LazyCategory(
    footer: @Composable () -> Unit = {},
    header: @Composable () -> Unit,
) {
    header()
    Column(
        Modifier.padding(
                PaddingValues(
@@ -158,8 +159,6 @@ fun LazyCategory(
            verticalArrangement = Arrangement.spacedBy(SettingsDimension.paddingTiny),
            state = state,
        ) {
            item { CompositionLocalProvider(LocalIsInCategory provides true) { header() } }

            items(count = list.size, key = key) {
                title?.invoke(it)?.let { title -> CategoryTitle(title) }
                CompositionLocalProvider(LocalIsInCategory provides true) { entry(it)() }