Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Grechuhin <i.grechuhin@mapswithme.com>2015-05-27 19:04:15 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:48:54 +0300
commit7c57f75c765d9b3d73bb00dccb912b543d5ff627 (patch)
treec373268a36bb03dbc8e6e77e99eb473a38ad6fa5 /iphone/Maps/Classes/MapsAppDelegate.mm
parentfa8bccaa84d6a183f732b6656de44c05172b574e (diff)
[ios] Restore position tracking mode.
Diffstat (limited to 'iphone/Maps/Classes/MapsAppDelegate.mm')
-rw-r--r--iphone/Maps/Classes/MapsAppDelegate.mm9
1 files 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];
}