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

Commit cd29ef6f authored by tom hsu's avatar tom hsu
Browse files

Fix the corner problem if it only has 1 item.

Flag: EXEMPT bug fix
Fix: b/405029986
Test: Visual
Change-Id: Ib319f4515d61918e6da44741493d474c11855044
parent 13c4ea41
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -166,10 +166,16 @@ fun LazyCategory(
                title?.invoke(it)?.let { title -> CategoryTitle(title) }
                when (it) {
                    0 -> {
                        if (list.size == 1) {
                            Column(modifier = Modifier.clip(SettingsShape.CornerMedium2)) {
                                CompositionLocalProvider(LocalIsInCategory provides true) { entry(it)() }
                            }
                        } else {
                            Column(modifier = Modifier.clip(SettingsShape.TopCornerMedium2)) {
                                CompositionLocalProvider(LocalIsInCategory provides true) { entry(it)() }
                            }
                        }
                    }

                    list.size - 1 -> {
                        Column(modifier = Modifier.clip(SettingsShape.BottomCornerMedium2)) {