File tree 2 files changed +10
-5
lines changed
androidTest/kotlin/net/mullvad/mullvadvpn/compose/screen
main/kotlin/net/mullvad/mullvadvpn/compose/cell
2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -271,10 +271,7 @@ class VpnSettingsScreenTest {
271
271
)
272
272
273
273
// Assert
274
- onNodeWithTagAndText(
275
- testTag = String .format(LAZY_LIST_UDP_OVER_TCP_PORT_ITEM_X_TEST_TAG , 5001 ),
276
- text = " 5001"
277
- )
274
+ onNodeWithTag(String .format(LAZY_LIST_UDP_OVER_TCP_PORT_ITEM_X_TEST_TAG , 5001 ))
278
275
.assertExists()
279
276
.performClick()
280
277
Original file line number Diff line number Diff line change @@ -73,7 +73,15 @@ internal fun BaseCell(
73
73
horizontalArrangement = Arrangement .Start ,
74
74
modifier =
75
75
modifier
76
- .clickable(isRowEnabled, onClick = onCellClicked)
76
+ // 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
+ )
77
85
.wrapContentHeight()
78
86
.defaultMinSize(minHeight = minHeight)
79
87
.fillMaxWidth()
You can’t perform that action at this time.
0 commit comments