From f8bb3c15957d17bb35b0e493d93a0d5c34c364be Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Thu, 30 Apr 2015 16:12:38 +0200 Subject: [PATCH] Wizard: use lpConfigBoolForKey instead of lbConfigStringForKey --- Classes/WizardViewController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/WizardViewController.m b/Classes/WizardViewController.m index a0a293929..97d2ab99b 100644 --- a/Classes/WizardViewController.m +++ b/Classes/WizardViewController.m @@ -200,7 +200,7 @@ static UICompositeViewDescription *compositeDescription = nil; [LinphoneUtils adjustFontSize:provisionedAccountView mult:2.22f]; } - BOOL usePhoneNumber = [[LinphoneManager instance] lpConfigStringForKey:@"use_phone_number"]; + BOOL usePhoneNumber = [[LinphoneManager instance] lpConfigBoolForKey:@"use_phone_number"]; for (UILinphoneTextField* text in [NSArray arrayWithObjects:provisionedUsername, _createAccountUsername, _connectAccountUsername, _externalAccountUsername, nil]) { if (usePhoneNumber) { @@ -651,7 +651,7 @@ static UICompositeViewDescription *compositeDescription = nil; // only validate the username when creating a new account if( (textField.tag == ViewElement_Username) && (currentView == createAccountView) ){ BOOL isValidUsername = YES; - BOOL usePhoneNumber = [[LinphoneManager instance] lpConfigStringForKey:@"use_phone_number"]; + BOOL usePhoneNumber = [[LinphoneManager instance] lpConfigBoolForKey:@"use_phone_number"]; if (usePhoneNumber) { isValidUsername = linphone_proxy_config_is_phone_number(NULL, [string UTF8String]); } else {