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

Commit 57c246e7 authored by tom hsu's avatar tom hsu Committed by Tom Hsu
Browse files

[Spa] support header but not include category UI.

Flag: EXEMPT bug fix
Fix: b/405373439
Test: make pass
Test: Visual test, see b/405373439#4
Test: atest CategoryTestt.
Change-Id: Idb441c55f0e1da78bfcb959a34cb9c6149802201
parent 7df8a23d
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)() }