forked from organicmaps/organicmaps
[iOS] Exclude bookmarks screen from the hierarchy when we are opening catalogs from the URL
This commit is contained in:
parent
cf8ffbb582
commit
66222e46ef
2 changed files with 2 additions and 6 deletions
|
@ -342,12 +342,10 @@ struct Callback
|
|||
}
|
||||
|
||||
- (void)openCatalogForURL:(NSURL *)url {
|
||||
auto bookmarks = [[MWMBookmarksTabViewController alloc] init];
|
||||
bookmarks.activeTab = ActiveTabCatalog;
|
||||
// NOTE: UTM is already into URL, core part does it for Discovery page.
|
||||
MWMCatalogWebViewController *catalog = [MWMCatalogWebViewController catalogFromAbsoluteUrl:url utm:MWMUTMNone];
|
||||
NSMutableArray<UIViewController *> * controllers = [self.navigationController.viewControllers mutableCopy];
|
||||
[controllers addObjectsFromArray:@[bookmarks, catalog]];
|
||||
[controllers addObjectsFromArray:@[catalog]];
|
||||
[self.navigationController setViewControllers:controllers animated:YES];
|
||||
}
|
||||
|
||||
|
|
|
@ -793,12 +793,10 @@ void RegisterEventIfPossible(eye::MapObject::Event::Type const type, place_page:
|
|||
#pragma mark - MWMPlacePagePromoProtocol
|
||||
|
||||
- (void)openCatalogForURL:(NSURL *)url {
|
||||
auto bookmarks = [[MWMBookmarksTabViewController alloc] init];
|
||||
bookmarks.activeTab = ActiveTabCatalog;
|
||||
// NOTE: UTM is already into URL, core part does it for Placepage Gallery.
|
||||
MWMCatalogWebViewController *catalog = [MWMCatalogWebViewController catalogFromAbsoluteUrl:url utm:MWMUTMNone];
|
||||
NSMutableArray<UIViewController *> * controllers = [self.ownerViewController.navigationController.viewControllers mutableCopy];
|
||||
[controllers addObjectsFromArray:@[bookmarks, catalog]];
|
||||
[controllers addObjectsFromArray:@[catalog]];
|
||||
[self.ownerViewController.navigationController setViewControllers:controllers animated:YES];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue