File tree 1 file changed +15
-12
lines changed
android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen
1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -312,18 +312,21 @@ fun VpnSettingsScreen(
312
312
text = stringResource(id = R .string.auto_connect_and_lockdown_mode_footer)
313
313
)
314
314
}
315
- }
316
- item {
317
- Spacer (modifier = Modifier .height(Dimens .cellLabelVerticalPadding))
318
- HeaderSwitchComposeCell (
319
- title = stringResource(R .string.auto_connect),
320
- isToggled = uiState.isAutoConnectEnabled,
321
- isEnabled = true ,
322
- onCellClicked = { newValue -> onToggleAutoConnect(newValue) }
323
- )
324
- }
325
- item {
326
- SwitchComposeSubtitleCell (text = stringResource(id = R .string.auto_connect_footer))
315
+ } else {
316
+ item {
317
+ Spacer (modifier = Modifier .height(Dimens .cellLabelVerticalPadding))
318
+ HeaderSwitchComposeCell (
319
+ title = stringResource(R .string.auto_connect),
320
+ isToggled = uiState.isAutoConnectEnabled,
321
+ isEnabled = true ,
322
+ onCellClicked = { newValue -> onToggleAutoConnect(newValue) }
323
+ )
324
+ }
325
+ item {
326
+ SwitchComposeSubtitleCell (
327
+ text = stringResource(id = R .string.auto_connect_footer)
328
+ )
329
+ }
327
330
}
328
331
item {
329
332
Spacer (modifier = Modifier .height(Dimens .cellLabelVerticalPadding))
You can’t perform that action at this time.
0 commit comments