forked from organicmaps/organicmaps
[iOS] Background location update activates in route planning mode
https://jira.mail.ru/browse/MAPSME-14665
This commit is contained in:
parent
5b4964a1eb
commit
905e036fbd
1 changed files with 2 additions and 3 deletions
|
@ -82,10 +82,9 @@ BOOL keepRunningInBackground()
|
|||
if (needGPSForTrackRecorder)
|
||||
return YES;
|
||||
|
||||
auto const isRouteBuilt = [MWMRouter isRouteBuilt];
|
||||
auto const isOnRoute = [MWMRouter isOnRoute];
|
||||
auto const isRouteFinished = [MWMRouter isRouteFinished];
|
||||
auto const isRouteRebuildingOnly = [MWMRouter isRouteRebuildingOnly];
|
||||
auto const needGPSForRouting = ((isRouteBuilt || isRouteRebuildingOnly) && !isRouteFinished);
|
||||
auto const needGPSForRouting = (isOnRoute && !isRouteFinished);
|
||||
if (needGPSForRouting)
|
||||
return YES;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue