diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/SideButtons/MWMSideButtons.mm b/iphone/Maps/Classes/CustomViews/MapViewControls/SideButtons/MWMSideButtons.mm index 19fb535a4a..5267a2642a 100644 --- a/iphone/Maps/Classes/CustomViews/MapViewControls/SideButtons/MWMSideButtons.mm +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/SideButtons/MWMSideButtons.mm @@ -58,7 +58,6 @@ NSArray * animationImages(NSString * animationTemplate, NSUInteger im self.sideView.topBound = 0.0; self.sideView.bottomBound = view.height; self.zoomSwipeEnabled = NO; - [self processMyPositionStateModeEvent:location::PendingPosition]; } return self; } @@ -125,11 +124,14 @@ NSArray * animationImages(NSString * animationTemplate, NSUInteger im } } (self.locationMode, mode); - locBtn.imageView.animationDuration = 0.0; locBtn.imageView.animationImages = images; - locBtn.imageView.animationRepeatCount = 1; - locBtn.imageView.image = images.lastObject; - [locBtn.imageView startAnimating]; + if (images) + { + locBtn.imageView.animationDuration = 0.0; + locBtn.imageView.animationRepeatCount = 1; + locBtn.imageView.image = images.lastObject; + [locBtn.imageView startAnimating]; + } [self refreshLocationButtonState:mode]; self.locationMode = mode; } diff --git a/iphone/Maps/Classes/MapViewController.mm b/iphone/Maps/Classes/MapViewController.mm index 538051e237..6300fcd375 100644 --- a/iphone/Maps/Classes/MapViewController.mm +++ b/iphone/Maps/Classes/MapViewController.mm @@ -397,6 +397,7 @@ BOOL gIsFirstMyPositionMode = YES; return; self.view.clipsToBounds = YES; [MTRGManager setMyCom:YES]; + [self processMyPositionStateModeEvent:location::PendingPosition]; } - (void)mwm_refreshUI @@ -529,7 +530,6 @@ BOOL gIsFirstMyPositionMode = YES; self.menuRestoreState = MWMBottomMenuStateInactive; GetFramework().LoadBookmarks(); [MWMFrameworkListener addObserver:self]; - [self processMyPositionStateModeEvent:location::PendingPosition]; } #pragma mark - Open controllers