mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 07:59:20 +00:00
enable locking of light switch
remove domain settings adjust proxy setting
This commit is contained in:
parent
2d3aa9f0fd
commit
5021748e08
5 changed files with 19 additions and 24 deletions
|
|
@ -177,7 +177,7 @@
|
|||
|
||||
/* init gradients for lightsButton */
|
||||
{
|
||||
bool enabled = (usr != nil && usr.switchlight);
|
||||
bool enabled = (usr != nil && usr.switchlight && ![[NSUserDefaults standardUserDefaults] boolForKey:@"switchlight_preference"]);
|
||||
UIColor* col1 = (enabled)?BUSCHJAEGER_NORMAL_COLOR:BUSCHJAEGER_GRAY_COLOR;
|
||||
UIColor* col2 = (enabled)?BUSCHJAEGER_NORMAL_COLOR2:BUSCHJAEGER_GRAY_COLOR2;
|
||||
|
||||
|
|
|
|||
|
|
@ -424,6 +424,8 @@ static NSString *const CONFIGURATION_HOME_AP_KEY = @"CONFIGURATION_HOME_AP_KEY";
|
|||
}
|
||||
}
|
||||
[[NSUserDefaults standardUserDefaults] synchronize];
|
||||
[[NSUserDefaults standardUserDefaults] removeObjectForKey:@"ipgateway_preference"];
|
||||
[[NSUserDefaults standardUserDefaults] setObject:[[NSURL URLWithString:urlString] host] forKey:@"ipgateway_preference"];
|
||||
} else {
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[delegate buschJaegerConfigurationError:[NSString stringWithFormat:@"Request not succeed (Status code:%d)", urlResponse.statusCode]];
|
||||
|
|
|
|||
|
|
@ -145,6 +145,7 @@
|
|||
@"ringtone_01_1600", @"ringtone_preference",
|
||||
@"ringtone_01_1600", @"level_ringtone_preference",
|
||||
@"NO", @"lockdoors_preference",
|
||||
@"NO", @"switchlight_preference",
|
||||
majorVersion, @"version_preference",
|
||||
nil];
|
||||
|
||||
|
|
|
|||
|
|
@ -1463,7 +1463,6 @@ static void audioRouteChangeListenerCallback (
|
|||
//madatory parameters
|
||||
|
||||
NSString* username = [[NSUserDefaults standardUserDefaults] stringForKey:@"username_preference"];
|
||||
NSString* domain = [[NSUserDefaults standardUserDefaults] stringForKey:@"domain_preference"];
|
||||
NSString* accountPassword = [[NSUserDefaults standardUserDefaults] stringForKey:@"password_preference"];
|
||||
//bool configCheckDisable = [[NSUserDefaults standardUserDefaults] boolForKey:@"check_config_disable_preference"];
|
||||
/* MODIFICATION always enable outbound*/
|
||||
|
|
@ -1474,7 +1473,8 @@ static void audioRouteChangeListenerCallback (
|
|||
linphone_core_clear_all_auth_info(theLinphoneCore);
|
||||
//clear existing proxy config
|
||||
linphone_core_clear_proxy_config(theLinphoneCore);
|
||||
if (username && [username length] >0 && domain && [domain length]>0) {
|
||||
if (username && [username length] >0) {
|
||||
NSString* domain = configuration.network.domain;
|
||||
const char* identity = [[NSString stringWithFormat:@"sip:%@@%@",username,domain] cStringUsingEncoding:[NSString defaultCStringEncoding]];
|
||||
const char* password = [accountPassword cStringUsingEncoding:[NSString defaultCStringEncoding]];
|
||||
|
||||
|
|
|
|||
|
|
@ -64,29 +64,11 @@
|
|||
<key>IsSecure</key>
|
||||
<false/>
|
||||
<key>Key</key>
|
||||
<string>domain_preference</string>
|
||||
<string>ipgateway_preference</string>
|
||||
<key>KeyboardType</key>
|
||||
<string>URL</string>
|
||||
<key>Title</key>
|
||||
<string>Domain</string>
|
||||
<key>Type</key>
|
||||
<string>PSTextFieldSpecifier</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>AutocapitalizationType</key>
|
||||
<string>None</string>
|
||||
<key>AutocorrectionType</key>
|
||||
<string>No</string>
|
||||
<key>DefaultValue</key>
|
||||
<string></string>
|
||||
<key>IsSecure</key>
|
||||
<false/>
|
||||
<key>Key</key>
|
||||
<string>proxy_preference</string>
|
||||
<key>KeyboardType</key>
|
||||
<string>URL</string>
|
||||
<key>Title</key>
|
||||
<string>Proxy</string>
|
||||
<string>IP-Gateway</string>
|
||||
<key>Type</key>
|
||||
<string>PSTextFieldSpecifier</string>
|
||||
</dict>
|
||||
|
|
@ -162,10 +144,20 @@
|
|||
<key>Key</key>
|
||||
<string>lockdoors_preference</string>
|
||||
<key>Title</key>
|
||||
<string>Lock doors</string>
|
||||
<string>Hide Lock door</string>
|
||||
<key>Type</key>
|
||||
<string>PSToggleSwitchSpecifier</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>Type</key>
|
||||
<string>PSToggleSwitchSpecifier</string>
|
||||
<key>Title</key>
|
||||
<string>Hide Switch Light</string>
|
||||
<key>Key</key>
|
||||
<string>switchlight_preference</string>
|
||||
<key>DefaultValue</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>DefaultValue</key>
|
||||
<true/>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue