mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-18 11:58:09 +00:00
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…
Add table
Reference in a new issue