From 3455d3cb500a189369fe8aa34eb746322292148d Mon Sep 17 00:00:00 2001 From: "v.mikhaylenko" Date: Tue, 29 Sep 2015 13:58:22 +0300 Subject: [PATCH] Fixed bug with distance in place page. Signed-off-by: v.mikhaylenko --- iphone/Maps/Classes/MWMPlacePage.mm | 4 ++-- iphone/Maps/Classes/MWMPlacePageViewManager.mm | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/iphone/Maps/Classes/MWMPlacePage.mm b/iphone/Maps/Classes/MWMPlacePage.mm index 92cb16495e..9c879bf75d 100644 --- a/iphone/Maps/Classes/MWMPlacePage.mm +++ b/iphone/Maps/Classes/MWMPlacePage.mm @@ -59,14 +59,14 @@ extern NSString * const kAlohalyticsTapEventKey; - (void)addBookmark { - [self.manager addBookmark]; [self.basePlacePageView addBookmark]; + [self.manager addBookmark]; } - (void)removeBookmark { - [self.manager removeBookmark]; [self.basePlacePageView removeBookmark]; + [self.manager removeBookmark]; self.keyboardHeight = 0.; } diff --git a/iphone/Maps/Classes/MWMPlacePageViewManager.mm b/iphone/Maps/Classes/MWMPlacePageViewManager.mm index bc2bdeed2b..9219eb8d85 100644 --- a/iphone/Maps/Classes/MWMPlacePageViewManager.mm +++ b/iphone/Maps/Classes/MWMPlacePageViewManager.mm @@ -222,6 +222,7 @@ typedef NS_ENUM(NSUInteger, MWMPlacePageManagerState) [NSNotificationCenter.defaultCenter postNotificationName:kBookmarksChangedNotification object:nil userInfo:nil]; + [self updateDistance]; } - (void)removeBookmark @@ -243,6 +244,7 @@ typedef NS_ENUM(NSUInteger, MWMPlacePageManagerState) [NSNotificationCenter.defaultCenter postNotificationName:kBookmarksChangedNotification object:nil userInfo:nil]; + [self updateDistance]; } - (void)reloadBookmark