[drape] Check deep link first and first launch then.

Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
This commit is contained in:
Viktor Govako 2022-10-03 19:13:54 +03:00
parent c50eee5863
commit aa9cc3eef7

View file

@ -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;