fix: always on vpn settings state
This commit is contained in:
parent
30b577a03d
commit
893a03d3b1
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue