diff options
author | v.mikhaylenko <v.mikhaylenko@corp.mail.ru> | 2015-08-06 18:25:18 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:59:32 +0300 |
commit | 29e2f1ec3ce404c32cd9c5c22f7f45bb9ebae74e (patch) | |
tree | ee786d1b6ab74d40aa3f59fcd4a16efde0de9104 /iphone | |
parent | caa14e02a4f60d9fec5fb49bcfb1f7a4acadc4c0 (diff) |
[ios] Remove performAfterDelay:block:.
Diffstat (limited to 'iphone')
-rw-r--r-- | iphone/Maps/Classes/MapViewController.mm | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/iphone/Maps/Classes/MapViewController.mm b/iphone/Maps/Classes/MapViewController.mm index 763fac1e0c..5800d9c2ae 100644 --- a/iphone/Maps/Classes/MapViewController.mm +++ b/iphone/Maps/Classes/MapViewController.mm @@ -667,17 +667,12 @@ typedef NS_OPTIONS(NSUInteger, MapInfoView) f.GetBalloonManager().Dismiss(); self.controlsManager.routeBuildingProgress = 100.; [self.searchView setState:SearchViewStateHidden animated:YES]; - [self performAfterDelay:0.3 block:^ - { - if (self.forceRoutingStateChange == ForceRoutingStateChangeStartFollowing) - [self.controlsManager routingNavigation]; - else - [self.controlsManager routingReady]; - - [self updateRoutingInfo]; - self.forceRoutingStateChange = ForceRoutingStateChangeNone; - }]; - + if (self.forceRoutingStateChange == ForceRoutingStateChangeStartFollowing) + [self.controlsManager routingNavigation]; + else + [self.controlsManager routingReady]; + [self updateRoutingInfo]; + self.forceRoutingStateChange = ForceRoutingStateChangeNone; bool isDisclaimerApproved = false; (void)Settings::Get("IsDisclaimerApproved", isDisclaimerApproved); if (!isDisclaimerApproved) |