[ios] Fixed location manager updates on returning to foreground.

This commit is contained in:
Ilya Grechuhin 2016-03-22 15:38:45 +03:00 committed by Sergey Yershov
parent b45d9c8158
commit c23f2fb7d5

View file

@ -817,7 +817,7 @@ using namespace osm_auth_ios;
- (void)setIsDaemonMode:(BOOL)isDaemonMode
{
if (_isDaemonMode == isDaemonMode)
if ([Alohalytics isFirstSession] && _isDaemonMode == isDaemonMode)
return;
_isDaemonMode = isDaemonMode;
if (isDaemonMode)