Add boolean thingie from Adrian ;-)

This commit is contained in:
Markus M. May 2018-05-01 22:01:08 +02:00
parent 12d80e96ef
commit 02e9ce105c
2 changed files with 2 additions and 2 deletions

View file

@ -142,7 +142,7 @@ public class NSClientPlugin extends PluginBase {
nsClientService = mLocalBinder.getServiceInstance(); nsClientService = mLocalBinder.getServiceInstance();
} }
}; };
@Subscribe @Subscribe
public void onStatusEvent(final EventAppExit ignored) { public void onStatusEvent(final EventAppExit ignored) {
if (nsClientService != null) { if (nsClientService != null) {

View file

@ -124,7 +124,7 @@ class NsClientReceiverDelegate {
if (!ev.wifiConnected && wifiOnly) newAllowedState = false; if (!ev.wifiConnected && wifiOnly) newAllowedState = false;
if (ev.wifiConnected && !allowedSSIDs.trim().isEmpty() && !allowedSSIDs.contains(ev.ssid)) if (ev.wifiConnected && !allowedSSIDs.trim().isEmpty() && !allowedSSIDs.contains(ev.ssid))
newAllowedState = false; newAllowedState = false;
if (!allowRoaming && ev.roaming) newAllowedState = false; if (!ev.wifiConnected && !allowRoaming && ev.roaming) newAllowedState = false;
return newAllowedState; return newAllowedState;
} }