forked from organicmaps/organicmaps
[ios] Restore position tracking mode.
This commit is contained in:
parent
fa8bccaa84
commit
7c57f75c76
1 changed files with 4 additions and 5 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue