fix(android): expand v2 settings toggle hit areas · openclaw/openclaw@c289e3e
obviyus
·
2026-05-20
·
via Recent Commits to openclaw:main
File tree
apps/android/app/src/main/java/ai/openclaw/app/ui
| Original file line number | Diff line number | Diff line change |
|---|
@@ -36,6 +36,7 @@ import androidx.activity.compose.rememberLauncherForActivityResult
|
36 | 36 | import androidx.activity.result.contract.ActivityResultContracts |
37 | 37 | import androidx.compose.foundation.BorderStroke |
38 | 38 | import androidx.compose.foundation.background |
| 39 | +import androidx.compose.foundation.clickable |
39 | 40 | import androidx.compose.foundation.layout.Arrangement |
40 | 41 | import androidx.compose.foundation.layout.Box |
41 | 42 | import androidx.compose.foundation.layout.Column |
@@ -1067,7 +1068,12 @@ private fun V2SettingsTogglePanel(rows: List<V2SettingsToggleRow>) {
|
1067 | 1068 | @Composable |
1068 | 1069 | private fun V2SettingsToggleListRow(row: V2SettingsToggleRow) { |
1069 | 1070 | Row( |
1070 | | - modifier = Modifier.fillMaxWidth().heightIn(min = 52.dp).padding(horizontal = 10.dp, vertical = 6.dp), |
| 1071 | + modifier = |
| 1072 | +Modifier |
| 1073 | + .fillMaxWidth() |
| 1074 | + .heightIn(min = 56.dp) |
| 1075 | + .clickable { row.onCheckedChange(!row.checked) } |
| 1076 | + .padding(horizontal = 10.dp, vertical = 6.dp), |
1071 | 1077 | verticalAlignment = Alignment.CenterVertically, |
1072 | 1078 | horizontalArrangement = Arrangement.spacedBy(9.dp), |
1073 | 1079 | ) { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。