mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
pop to contactListsView when cancel adding contact
This commit is contained in:
parent
289c996684
commit
c5c8e59140
2 changed files with 5 additions and 1 deletions
|
|
@ -401,7 +401,10 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
}
|
||||
|
||||
self.tmpContact = NULL;
|
||||
_isAdding = FALSE;
|
||||
if (_isAdding) {
|
||||
[PhoneMainView.instance popToView:ContactsListView.compositeViewDescription];
|
||||
_isAdding = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
- (IBAction)onBackClick:(id)event {
|
||||
|
|
|
|||
|
|
@ -193,6 +193,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
- (IBAction)onAddContactClick:(id)event {
|
||||
ContactDetailsView *view = VIEW(ContactDetailsView);
|
||||
[PhoneMainView.instance changeCurrentView:view.compositeViewDescription];
|
||||
view.isAdding = TRUE;
|
||||
if ([ContactSelection getAddAddress] == nil) {
|
||||
[view newContact];
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue