From 331e75ba2f06033d08c722a3afe61a98b1e88a8f Mon Sep 17 00:00:00 2001 From: Ilya Grechuhin Date: Mon, 19 Oct 2015 16:50:10 +0300 Subject: [PATCH] [ios] Fixed bookmark sharing title. --- iphone/Maps/Classes/MWMPlacePageViewManager.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iphone/Maps/Classes/MWMPlacePageViewManager.mm b/iphone/Maps/Classes/MWMPlacePageViewManager.mm index 5003528def..e668cf3671 100644 --- a/iphone/Maps/Classes/MWMPlacePageViewManager.mm +++ b/iphone/Maps/Classes/MWMPlacePageViewManager.mm @@ -195,9 +195,10 @@ typedef NS_ENUM(NSUInteger, MWMPlacePageManagerState) - (void)share { MWMPlacePageEntity * entity = self.entity; + NSString * title = entity.bookmarkTitle ? entity.bookmarkTitle : entity.title; CLLocationCoordinate2D const coord = CLLocationCoordinate2DMake(entity.point.x, entity.point.y); MWMActivityViewController * shareVC = - [MWMActivityViewController shareControllerForLocationTitle:entity.title + [MWMActivityViewController shareControllerForLocationTitle:title location:coord myPosition:NO]; [shareVC presentInParentViewController:self.ownerViewController