From 7c57f75c765d9b3d73bb00dccb912b543d5ff627 Mon Sep 17 00:00:00 2001 From: Ilya Grechuhin Date: Wed, 27 May 2015 19:04:15 +0300 Subject: [PATCH] [ios] Restore position tracking mode. --- iphone/Maps/Classes/MapsAppDelegate.mm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/iphone/Maps/Classes/MapsAppDelegate.mm b/iphone/Maps/Classes/MapsAppDelegate.mm index 7aa1c7a7cf..436bda2ef4 100644 --- a/iphone/Maps/Classes/MapsAppDelegate.mm +++ b/iphone/Maps/Classes/MapsAppDelegate.mm @@ -205,13 +205,14 @@ void InitLocalizedStrings() [self shouldShowFacebookAlert]; } [[NSUserDefaults standardUserDefaults] synchronize]; - - application.applicationIconBadgeNumber = GetFramework().GetCountryTree().GetActiveMapLayout().GetOutOfDateCount(); + Framework & f = GetFramework(); + application.applicationIconBadgeNumber = f.GetCountryTree().GetActiveMapLayout().GetOutOfDateCount(); + f.GetLocationState()->InvalidatePosition(); if (isIOSVersionLessThan(7)) return [launchOptions objectForKey:UIApplicationLaunchOptionsURLKey] != nil; - + return [[FBSDKApplicationDelegate sharedInstance] application:application didFinishLaunchingWithOptions:launchOptions]; } @@ -305,8 +306,6 @@ void InitLocalizedStrings() m_mwmURL = nil; m_fileURL = nil; - f.GetLocationState()->InvalidatePosition(); - if (!isIOSVersionLessThan(7)) [FBSDKAppEvents activateApp]; }