Check wifi_only from the core since it is now done there
This commit is contained in:
parent
1704c53e80
commit
2145e61660
1 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue