Disable wifi only preference

This commit is contained in:
Yann Diorcet 2012-11-22 10:18:38 +01:00
parent ae6d519a33
commit c8335833ea
2 changed files with 5 additions and 0 deletions

View file

@ -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"];
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"];
[[LinphoneManager instance] lpConfigSetString:sharing_server forKey:@"sharing_server_preference"];

View file

@ -585,6 +585,8 @@ static UICompositeViewDescription *compositeDescription = nil;
[hiddenKeys addObject:@"incoming_call_timeout_preference"];
[hiddenKeys addObject:@"in_call_timeout_preference"];
[hiddenKeys addObject:@"wifi_only_preference"];
[hiddenKeys addObject:@"quit_button"]; // Hide for the moment
[hiddenKeys addObject:@"about_button"]; // Hide for the moment