Add boolean thingie from Adrian ;-)
This commit is contained in:
parent
12d80e96ef
commit
02e9ce105c
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue