diff options
author | Ilya Grechuhin <i.grechuhin@mapswithme.com> | 2015-08-12 19:08:22 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 03:01:10 +0300 |
commit | fcde12d65feebb7f6d0d068b7838d7c9533cb751 (patch) | |
tree | 573446e3cc5e073ec02a739770969f203b89197f /iphone | |
parent | f6f91390d2d4dccdd826255809ca17a9297be028 (diff) |
[ios] Fixed sharing to Facebook for odd cases.
Diffstat (limited to 'iphone')
-rw-r--r-- | iphone/Maps/Classes/Share/MWMSharePedestrianRoutesToastActivityItem.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/iphone/Maps/Classes/Share/MWMSharePedestrianRoutesToastActivityItem.mm b/iphone/Maps/Classes/Share/MWMSharePedestrianRoutesToastActivityItem.mm index ac61193650..4607f33aa9 100644 --- a/iphone/Maps/Classes/Share/MWMSharePedestrianRoutesToastActivityItem.mm +++ b/iphone/Maps/Classes/Share/MWMSharePedestrianRoutesToastActivityItem.mm @@ -29,7 +29,9 @@ NSString * event = @"MWMSharePedestrianRoutesToastActivityItem:activityViewController:itemForActivityType:"; [Alohalytics logEvent:event withValue:activityType]; [Statistics.instance logEvent:event withParameters:@{@"type" : activityType}]; - if ([UIActivityTypePostToFacebook isEqualToString:activityType]) + if ([activityType isEqualToString:UIActivityTypePostToFacebook] || + [activityType isEqualToString:@"com.facebook.Facebook.ShareExtension"] || + [activityType.lowercaseString rangeOfString:@"facebook"].length) { NSString * url = [NSString stringWithFormat:@"http://maps.me/fb-pedestrian?lang=%@", @(languages::GetCurrentNorm().c_str())]; |