Fixed wifi only

This commit is contained in:
Sylvain Berfini 2019-04-23 10:07:31 +02:00
parent cd4f824521
commit f6115014d8

View file

@ -437,12 +437,12 @@ public class LinphonePreferences {
// End of call settings // End of call settings
public boolean isWifiOnlyEnabled() { public boolean isWifiOnlyEnabled() {
return getConfig().getBool("app", "wifi_only", false); return getLc().wifiOnlyEnabled();
} }
// Network settings // Network settings
public void setWifiOnlyEnabled(Boolean enable) { public void setWifiOnlyEnabled(Boolean enable) {
getConfig().setBool("app", "wifi_only", enable); getLc().enableWifiOnly(enable);
} }
public void useRandomPort(boolean enabled) { public void useRandomPort(boolean enabled) {