fix: always on vpn settings state

This commit is contained in:
Zane Schepke 2024-09-27 00:15:08 -04:00
parent 30b577a03d
commit 893a03d3b1
1 changed files with 4 additions and 3 deletions

View File

@ -545,9 +545,10 @@ fun SettingsScreen(
ConfigurationToggle( ConfigurationToggle(
stringResource(R.string.always_on_vpn_support), stringResource(R.string.always_on_vpn_support),
enabled = !( enabled = !(
uiState.settings.isTunnelOnWifiEnabled || (uiState.settings.isTunnelOnWifiEnabled ||
uiState.settings.isTunnelOnWifiEnabled || uiState.settings.isTunnelOnEthernetEnabled ||
uiState.settings.isTunnelOnMobileDataEnabled uiState.settings.isTunnelOnMobileDataEnabled) &&
uiState.settings.isAutoTunnelEnabled
), ),
checked = uiState.settings.isAlwaysOnVpnEnabled, checked = uiState.settings.isAlwaysOnVpnEnabled,
padding = screenPadding, padding = screenPadding,