From 31ee686516dd02747d03caab2c968ccf2eb93b57 Mon Sep 17 00:00:00 2001 From: Brieuc Viel Date: Tue, 13 Sep 2016 14:53:39 +0200 Subject: [PATCH] LinkAccountView updated with new texts --- Classes/AssistantLinkView.h | 1 + Classes/AssistantLinkView.m | 17 ++ Classes/Base.lproj/AssistantLinkView.xib | 196 ++++++++++++----------- 3 files changed, 124 insertions(+), 90 deletions(-) diff --git a/Classes/AssistantLinkView.h b/Classes/AssistantLinkView.h index f7c5bba48..fc822f1cd 100644 --- a/Classes/AssistantLinkView.h +++ b/Classes/AssistantLinkView.h @@ -25,5 +25,6 @@ - (IBAction)onCheckValidationButton:(id)sender; - (IBAction)onCountryClick:(id)sender; - (IBAction)onDialerClick:(id)sender; +- (IBAction)onPhoneNumberDisclosureClick:(id)sender; @end diff --git a/Classes/AssistantLinkView.m b/Classes/AssistantLinkView.m index eba10a4b0..460a770e1 100644 --- a/Classes/AssistantLinkView.m +++ b/Classes/AssistantLinkView.m @@ -196,6 +196,23 @@ void assistant_activate_phone_number_link(LinphoneAccountCreator *creator, Linph [PhoneMainView.instance popToView:DialerView.compositeViewDescription]; } +- (IBAction)onPhoneNumberDisclosureClick:(id)sender { + UIAlertView *errorView = [[UIAlertView alloc] + initWithTitle:NSLocalizedString(@"What will my phone number be used for?", nil) + message:NSLocalizedString(@"Your friends will find your more easily if you link your account to your " + @"phone number. \n\nYou will see in your address book who is using " + @"Linphone and your friend will know that they can reach you on Linphone " + @"as well. \n\nYou can use your phone number with only one Linphone " + @"account. If you had already linked your number to an other account but " + @"you prefere to use this one, simply link it now and your number will " + @"automatically be moved to this account.", + nil) + delegate:nil + cancelButtonTitle:NSLocalizedString(@"OK", nil) + otherButtonTitles:nil, nil]; + [errorView show]; +} + #pragma mark - select country delegate - (void)didSelectCountry:(NSDictionary *)country { diff --git a/Classes/Base.lproj/AssistantLinkView.xib b/Classes/Base.lproj/AssistantLinkView.xib index fc1466e18..2691532dc 100644 --- a/Classes/Base.lproj/AssistantLinkView.xib +++ b/Classes/Base.lproj/AssistantLinkView.xib @@ -1,8 +1,9 @@ - + - + + @@ -25,24 +26,24 @@ - + - - + + - - - + + + - - + - - - - - + - - + @@ -246,4 +257,9 @@ + + + + +