Skip to content
Snippets Groups Projects
Unverified Commit c35cad97 authored by akwizgran's avatar akwizgran
Browse files

Fixed name of Tor mobile data setting. #316

parent ea973b61
No related branches found
No related tags found
No related merge requests found
...@@ -681,7 +681,7 @@ class TorPlugin implements DuplexPlugin, EventHandler, ...@@ -681,7 +681,7 @@ class TorPlugin implements DuplexPlugin, EventHandler,
boolean blocked = TorNetworkMetadata.isTorProbablyBlocked( boolean blocked = TorNetworkMetadata.isTorProbablyBlocked(
country); country);
Settings s = callback.getSettings(); Settings s = callback.getSettings();
boolean wifiOnly = s.getBoolean("torOverWifi", false); boolean useMobileData = s.getBoolean("torOverMobile", true);
try { try {
if (!online) { if (!online) {
...@@ -690,8 +690,8 @@ class TorPlugin implements DuplexPlugin, EventHandler, ...@@ -690,8 +690,8 @@ class TorPlugin implements DuplexPlugin, EventHandler,
} else if (blocked) { } else if (blocked) {
LOG.info("Disabling network, country is blocked"); LOG.info("Disabling network, country is blocked");
enableNetwork(false); enableNetwork(false);
} else if (wifiOnly & !connectedToWifi) { } else if (!useMobileData & !connectedToWifi) {
LOG.info("Disabling network due to wifi setting"); LOG.info("Disabling network due to data setting");
enableNetwork(false); enableNetwork(false);
} else { } else {
enableNetwork(true); enableNetwork(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment