Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2017-06-26 11:39:05 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2017-06-26 11:39:05 +0300
commit18f8778ae2dc0e3ce49cb3d77217a8fed0995e11 (patch)
tree9a57aaacbc33ef618f9a5c10231d5973fd3babba
parentacd5a011c518adae106db49ae073a8dc6c1f4eaa (diff)
Added logging to detect bugbeta-880release-73-for-test
-rw-r--r--drape_frontend/my_position_controller.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/drape_frontend/my_position_controller.cpp b/drape_frontend/my_position_controller.cpp
index 7467723967..5d1d1d98b9 100644
--- a/drape_frontend/my_position_controller.cpp
+++ b/drape_frontend/my_position_controller.cpp
@@ -343,6 +343,7 @@ void MyPositionController::NextMode(ScreenBase const & screen)
// In routing not-follow -> follow-and-rotate, otherwise not-follow -> follow.
if (m_mode == location::NotFollow)
{
+ LOG(LINFO, ("TEST: NextMode, m_isInRouting = ", m_isInRouting));
ChangeMode(m_isInRouting ? location::FollowAndRotate : location::Follow);
UpdateViewport(preferredZoomLevel);
return;
@@ -354,6 +355,8 @@ void MyPositionController::NextMode(ScreenBase const & screen)
{
if (IsRotationAvailable() || m_isInRouting)
{
+ LOG(LINFO, ("TEST: NextMode, m_isInRouting = ", m_isInRouting,
+ "IsRotationAvailable() = ", IsRotationAvailable()));
ChangeMode(location::FollowAndRotate);
UpdateViewport(preferredZoomLevel);
}
@@ -435,6 +438,7 @@ void MyPositionController::OnLocationUpdate(location::GpsInfo const & info, bool
{
if (m_isInRouting)
{
+ LOG(LINFO, ("TEST: OnLocationUpdate, PendingPosition or NotFollowNoPosition"));
ChangeMode(location::FollowAndRotate);
UpdateViewport(kMaxScaleZoomLevel);
}
@@ -531,6 +535,7 @@ void MyPositionController::Render(ScreenBase const & screen, int zoomLevel,
if (IsInRouting() && m_mode == location::NotFollow &&
m_routingNotFollowTimer.ElapsedSeconds() >= kMaxNotFollowRoutingTimeSec)
{
+ LOG(LINFO, ("TEST: Render, from NotFollow by timer"));
ChangeMode(location::FollowAndRotate);
UpdateViewport(kDoNotChangeZoom);
}
@@ -640,6 +645,7 @@ void MyPositionController::SetTimeInBackground(double time)
{
if (time >= kMaxTimeInBackgroundSec && m_mode == location::NotFollow)
{
+ LOG(LINFO, ("TEST: SetTimeInBackground, m_isInRouting = ", m_isInRouting));
ChangeMode(m_isInRouting ? location::FollowAndRotate : location::Follow);
UpdateViewport(kDoNotChangeZoom);
}
@@ -811,6 +817,7 @@ void MyPositionController::ActivateRouting(int zoomLevel, bool enableAutoZoom)
if (IsRotationAvailable())
{
+ LOG(LINFO, ("TEST: ActivateRouting"));
ChangeMode(location::FollowAndRotate);
ChangeModelView(m_position, m_drawDirection, GetRoutingRotationPixelCenter(), zoomLevel);
}