forked from organicmaps/organicmaps
[iOS] Fixed crash in BookmarksCoordinator
https://jira.mail.ru/browse/MAPSME-14712
This commit is contained in:
parent
8d8601a4e6
commit
1b47a2fbde
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ final class BookmarksTabViewController: TabViewController {
|
|||
|
||||
private weak var coordinator: BookmarksCoordinator?
|
||||
|
||||
init(coordinator: BookmarksCoordinator?) {
|
||||
@objc init(coordinator: BookmarksCoordinator?) {
|
||||
super.init(nibName: nil, bundle: nil)
|
||||
self.coordinator = coordinator
|
||||
}
|
||||
|
|
|
@ -640,7 +640,7 @@ NSString *const kPP2BookmarkEditingSegue = @"PP2BookmarkEditing";
|
|||
|
||||
- (void)openCatalogInternal:(MWMCatalogWebViewController *)catalog animated:(BOOL)animated utm:(MWMUTM)utm {
|
||||
[self.navigationController popToRootViewControllerAnimated:NO];
|
||||
auto bookmarks = [[MWMBookmarksTabViewController alloc] init];
|
||||
auto bookmarks = [[MWMBookmarksTabViewController alloc] initWithCoordinator:self.bookmarksCoordinator];
|
||||
bookmarks.activeTab = ActiveTabCatalog;
|
||||
NSMutableArray<UIViewController *> *controllers = [self.navigationController.viewControllers mutableCopy];
|
||||
[controllers addObjectsFromArray:@[bookmarks, catalog]];
|
||||
|
|
Loading…
Add table
Reference in a new issue