[iOS] deselect map object when PP is hidden

https://jira.mail.ru/browse/MAPSME-13530
This commit is contained in:
Aleksey Belousov 2020-04-06 14:22:58 +03:00 committed by Vladimir Byko-Ianko
parent 4a68689164
commit 588d69b9cc

View file

@ -127,6 +127,10 @@ NSString * const kPP2BookmarkEditingSegue = @"PP2BookmarkEditing";
}
- (void)dismissPlacePage {
GetFramework().DeactivateMapSelection(true);
}
- (void)hidePlacePage {
[self.placePageVC.view removeFromSuperview];
[self.placePageVC willMoveToParentViewController:nil];
[self.placePageVC removeFromParentViewController];
@ -137,7 +141,7 @@ NSString * const kPP2BookmarkEditingSegue = @"PP2BookmarkEditing";
- (void)onMapObjectDeselected:(bool)switchFullScreenMode
{
[self dismissPlacePage];
[self hidePlacePage];
if (!switchFullScreenMode)
return;
@ -153,7 +157,7 @@ NSString * const kPP2BookmarkEditingSegue = @"PP2BookmarkEditing";
}
- (void)onMapObjectSelected {
[self dismissPlacePage];
[self hidePlacePage];
[[MWMNetworkPolicy sharedPolicy] callOnlineApi:^(BOOL) {
[self showPlacePage];
}];