forked from mirrors/linphone-iphone
Fix countryCode selection in LinkAccountView
This commit is contained in:
parent
e6558c9b46
commit
4c2f0ecb4a
2 changed files with 4 additions and 2 deletions
|
|
@ -20,6 +20,7 @@
|
|||
@property(weak, nonatomic) IBOutlet UIRoundBorderedButton *checkValidationButton;
|
||||
@property(weak, nonatomic) IBOutlet UIView *waitView;
|
||||
@property(weak, nonatomic) IBOutlet UITextField *phoneField;
|
||||
@property BOOL firstTime;
|
||||
|
||||
- (IBAction)onLinkAccount:(id)sender;
|
||||
- (IBAction)onCheckValidationButton:(id)sender;
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
[super viewDidLoad];
|
||||
// every UITextField subviews with phone keyboard must be tweaked to have a done button
|
||||
[self addDoneButtonRecursivelyInView:self.view];
|
||||
self.phoneField.delegate = self;
|
||||
self.phoneField.delegate = self; self.firstTime = TRUE;
|
||||
}
|
||||
|
||||
- (void)addDoneButtonRecursivelyInView:(UIView *)subview {
|
||||
|
|
@ -80,7 +80,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
if (country) {
|
||||
if (country && self.firstTime) {
|
||||
[self didSelectCountry:country];
|
||||
}
|
||||
}
|
||||
|
|
@ -195,6 +195,7 @@ void assistant_activate_phone_number_link(LinphoneAccountCreator *creator, Linph
|
|||
}
|
||||
|
||||
- (IBAction)onCountryClick:(id)sender {
|
||||
self.firstTime = FALSE;
|
||||
CountryListView *view = VIEW(CountryListView);
|
||||
[view setDelegate:(id)self];
|
||||
[PhoneMainView.instance changeCurrentView:view.compositeViewDescription];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue