mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-29 06:36:22 +00:00
Disable wifi only preference
This commit is contained in:
parent
ae6d519a33
commit
c8335833ea
2 changed files with 5 additions and 0 deletions
|
|
@ -594,6 +594,9 @@ extern void linphone_iphone_log_handler(int lev, const char *fmt, va_list args);
|
||||||
|
|
||||||
BOOL wifiOnly = [self boolForKey:@"wifi_only_preference"];
|
BOOL wifiOnly = [self boolForKey:@"wifi_only_preference"];
|
||||||
lp_config_set_int(linphone_core_get_config(lc), LINPHONERC_APPLICATION_KEY, "wifi_only_preference", wifiOnly);
|
lp_config_set_int(linphone_core_get_config(lc), LINPHONERC_APPLICATION_KEY, "wifi_only_preference", wifiOnly);
|
||||||
|
if([self valueChangedForKey:@"wifi_only_preference"]) {
|
||||||
|
[[LinphoneManager instance] setupNetworkReachabilityCallback];
|
||||||
|
}
|
||||||
|
|
||||||
NSString* sharing_server = [self stringForKey:@"sharing_server_preference"];
|
NSString* sharing_server = [self stringForKey:@"sharing_server_preference"];
|
||||||
[[LinphoneManager instance] lpConfigSetString:sharing_server forKey:@"sharing_server_preference"];
|
[[LinphoneManager instance] lpConfigSetString:sharing_server forKey:@"sharing_server_preference"];
|
||||||
|
|
|
||||||
|
|
@ -585,6 +585,8 @@ static UICompositeViewDescription *compositeDescription = nil;
|
||||||
[hiddenKeys addObject:@"incoming_call_timeout_preference"];
|
[hiddenKeys addObject:@"incoming_call_timeout_preference"];
|
||||||
[hiddenKeys addObject:@"in_call_timeout_preference"];
|
[hiddenKeys addObject:@"in_call_timeout_preference"];
|
||||||
|
|
||||||
|
[hiddenKeys addObject:@"wifi_only_preference"];
|
||||||
|
|
||||||
[hiddenKeys addObject:@"quit_button"]; // Hide for the moment
|
[hiddenKeys addObject:@"quit_button"]; // Hide for the moment
|
||||||
[hiddenKeys addObject:@"about_button"]; // Hide for the moment
|
[hiddenKeys addObject:@"about_button"]; // Hide for the moment
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue