We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 364772f commit 29db209Copy full SHA for 29db209
android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/cell/BaseCell.kt
@@ -73,7 +73,15 @@ internal fun BaseCell(
73
horizontalArrangement = Arrangement.Start,
74
modifier =
75
modifier
76
- .clickable(isRowEnabled, onClick = onCellClicked)
+ // This is to avoid a crash when a child view is focused and clickable is set to
77
+ // false on the parent view
78
+ .then(
79
+ if (isRowEnabled) {
80
+ Modifier.clickable(onClick = onCellClicked)
81
+ } else {
82
+ Modifier
83
+ }
84
+ )
85
.wrapContentHeight()
86
.defaultMinSize(minHeight = minHeight)
87
.fillMaxWidth()
0 commit comments