mirror of https://github.com/NekoX-Dev/NekoX.git
Delete disableProxyWhenVpnEnabled
This commit is contained in:
parent
d938d7ff9b
commit
3533f7b61e
|
@ -4270,15 +4270,6 @@ public class LaunchActivity extends Activity implements ActionBarLayout.ActionBa
|
|||
passcodeView.onResume();
|
||||
}
|
||||
|
||||
if (NekomuraConfig.disableProxyWhenVpnEnabled.Bool()) {
|
||||
if (SharedConfig.proxyEnabled && ProxyUtil.isVPNEnabled()) {
|
||||
SharedConfig.setProxyEnable(false);
|
||||
} else if (!ProxyUtil.isVPNEnabled()) {
|
||||
SharedConfig.setProxyEnable(true);
|
||||
}
|
||||
NotificationCenter.getGlobalInstance().postNotificationName(NotificationCenter.proxySettingsChanged);
|
||||
}
|
||||
|
||||
ConnectionsManager.getInstance(currentAccount).setAppPaused(false, false);
|
||||
updateCurrentConnectionState(currentAccount);
|
||||
|
||||
|
|
|
@ -90,7 +90,6 @@ public class NekoGeneralSettingsActivity extends BaseFragment {
|
|||
|
||||
private final AbstractCell header1 = cellGroup.appendCell(new NekomuraTGHeader(LocaleController.getString("Connection")));
|
||||
private final AbstractCell useIPv6Row = cellGroup.appendCell(new NekomuraTGTextCheck(NekomuraConfig.useIPv6));
|
||||
private final AbstractCell disableProxyWhenVpnEnabledRow = cellGroup.appendCell(new NekomuraTGTextCheck(NekomuraConfig.disableProxyWhenVpnEnabled));
|
||||
private final AbstractCell useProxyItemRow = cellGroup.appendCell(new NekomuraTGTextCheck(NekomuraConfig.useProxyItem));
|
||||
private final AbstractCell hideProxyByDefaultRow = cellGroup.appendCell(new NekomuraTGTextCheck(NekomuraConfig.hideProxyByDefault));
|
||||
private final AbstractCell autoUpdateSubInfoRow = cellGroup.appendCell(new NekomuraTGTextCheck(NekomuraConfig.autoUpdateSubInfo));
|
||||
|
|
|
@ -112,7 +112,7 @@ public class NekomuraConfig {
|
|||
public static ConfigItem filterUnmutedAndUnread = addConfig("filter_unmuted_and_unread", configTypeBool, true);
|
||||
|
||||
public static ConfigItem disableSystemAccount = addConfig("DisableSystemAccount", configTypeBool, false);
|
||||
public static ConfigItem disableProxyWhenVpnEnabled = addConfig("DisableProxyWhenVpnEnabled", configTypeBool, false);
|
||||
// public static ConfigItem disableProxyWhenVpnEnabled = addConfig("DisableProxyWhenVpnEnabled", configTypeBool, false);
|
||||
public static ConfigItem skipOpenLinkConfirm = addConfig("SkipOpenLinkConfirm", configTypeBool, false);
|
||||
|
||||
public static ConfigItem ignoreMutedCount = addConfig("IgnoreMutedCount", configTypeBool, true);
|
||||
|
@ -419,8 +419,6 @@ public class NekomuraConfig {
|
|||
|
||||
if (preferences.contains("disable_system_account"))
|
||||
disableSystemAccount.setConfigBool(preferences.getBoolean("disable_system_account", false));
|
||||
if (preferences.contains("disable_proxy_when_vpn_enabled"))
|
||||
disableProxyWhenVpnEnabled.setConfigBool(preferences.getBoolean("disable_proxy_when_vpn_enabled", false));
|
||||
if (preferences.contains("skip_open_link_confirm"))
|
||||
skipOpenLinkConfirm.setConfigBool(preferences.getBoolean("skip_open_link_confirm", false));
|
||||
|
||||
|
|
Loading…
Reference in New Issue