Commit 2becb86a authored by QuentinArguillere's avatar QuentinArguillere
Browse files

Fix bug where the “previous” button in the contact details would always return...

Fix bug where the “previous” button in the contact details would always return to the contacts list, even though we could have come from the call history details
parent e4ea67b7
Pipeline #31138 passed with stage
in 3 minutes and 51 seconds
......@@ -501,9 +501,15 @@ static UICompositeViewDescription *compositeDescription = nil;
if ([ContactSelection getSelectionMode] == ContactSelectionModeEdit) {
[ContactSelection setSelectionMode:ContactSelectionModeNone];
}
ContactsListView *view = VIEW(ContactsListView);
[PhoneMainView.instance popToView:view.compositeViewDescription];
NSString* previous = [PhoneMainView.instance getPreviousViewName];
if ([previous isEqualToString:@"ContactsListView"]) {
ContactsListView *view = VIEW(ContactsListView);
[PhoneMainView.instance popToView:view.compositeViewDescription];
} else {
HistoryDetailsView *view = VIEW(HistoryDetailsView);
[PhoneMainView.instance popToView:view.compositeViewDescription];
}
}
- (IBAction)onEditClick:(id)event {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment