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

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

Merge "Fix the corner problem if it only has 1 item." into main

parents ef4d9c46 cd29ef6f
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)) {