Check wifi_only from the core since it is now done there

This commit is contained in:
Mickaël Turnel 2018-10-29 14:23:31 +01:00
parent 1704c53e80
commit 2145e61660

View file

@ -1042,11 +1042,13 @@ public class LinphonePreferences {
// Network settings
public void setWifiOnlyEnabled(Boolean enable) {
getConfig().setBool("app", "wifi_only", enable);
if (getLc() == null) return;
getLc().enableWifiOnly(enable);
}
public boolean isWifiOnlyEnabled() {
return getConfig().getBool("app", "wifi_only", false);
if (getLc() == null) return false;
return getLc().wifiOnlyEnabled();
}
public void useRandomPort(boolean enabled) {