Skip to content

Commit 184189a

Browse files
committed
Fix crash when focusing remove button in device list screen
1 parent 364772f commit 184189a

File tree

1 file changed

+7
-1
lines changed
  • android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/cell

1 file changed

+7
-1
lines changed

android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/cell/BaseCell.kt

+7-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,13 @@ internal fun BaseCell(
7373
horizontalArrangement = Arrangement.Start,
7474
modifier =
7575
modifier
76-
.clickable(isRowEnabled, onClick = onCellClicked)
76+
.then(
77+
if (isRowEnabled) {
78+
Modifier.clickable(onClick = onCellClicked)
79+
} else {
80+
Modifier
81+
}
82+
)
7783
.wrapContentHeight()
7884
.defaultMinSize(minHeight = minHeight)
7985
.fillMaxWidth()

0 commit comments

Comments
 (0)