[ios] Fixed bookmark sharing title.

This commit is contained in:
Ilya Grechuhin 2015-10-19 16:50:10 +03:00
parent ceb61c9b04
commit 331e75ba2f

View file

@ -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