forked from organicmaps/organicmaps
[drape] Check deep link first and first launch then.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
This commit is contained in:
parent
c50eee5863
commit
aa9cc3eef7
1 changed files with 5 additions and 5 deletions
|
@ -147,14 +147,14 @@ MyPositionController::MyPositionController(Params && params, ref_ptr<DrapeNotifi
|
|||
using namespace location;
|
||||
|
||||
m_mode = PendingPosition;
|
||||
if (m_hints.m_isFirstLaunch)
|
||||
{
|
||||
m_desiredInitMode = Follow;
|
||||
}
|
||||
else if (m_hints.m_isLaunchByDeepLink)
|
||||
if (m_hints.m_isLaunchByDeepLink)
|
||||
{
|
||||
m_desiredInitMode = NotFollow;
|
||||
}
|
||||
else if (m_hints.m_isFirstLaunch)
|
||||
{
|
||||
m_desiredInitMode = Follow;
|
||||
}
|
||||
else if (params.m_timeInBackground >= kMaxTimeInBackgroundSec)
|
||||
{
|
||||
m_desiredInitMode = Follow;
|
||||
|
|
Loading…
Add table
Reference in a new issue