Skip to content

Commit

Permalink
fix: always on vpn settings state
Browse files Browse the repository at this point in the history
  • Loading branch information
zaneschepke committed Sep 27, 2024
1 parent 30b577a commit 893a03d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -545,9 +545,10 @@ fun SettingsScreen(
ConfigurationToggle(
stringResource(R.string.always_on_vpn_support),
enabled = !(
uiState.settings.isTunnelOnWifiEnabled ||
uiState.settings.isTunnelOnWifiEnabled ||
uiState.settings.isTunnelOnMobileDataEnabled
(uiState.settings.isTunnelOnWifiEnabled ||
uiState.settings.isTunnelOnEthernetEnabled ||
uiState.settings.isTunnelOnMobileDataEnabled) &&
uiState.settings.isAutoTunnelEnabled
),
checked = uiState.settings.isAlwaysOnVpnEnabled,
padding = screenPadding,
Expand Down

0 comments on commit 893a03d

Please sign in to comment.