diff --git a/iphone/Maps/Classes/MapViewController.mm b/iphone/Maps/Classes/MapViewController.mm index 2afa38dd6d..4529250c54 100644 --- a/iphone/Maps/Classes/MapViewController.mm +++ b/iphone/Maps/Classes/MapViewController.mm @@ -396,8 +396,18 @@ NSInteger compareAddress(UITouch * l, UITouch * r, void * context) { if (m_framework) { - if (!m_framework->SetUpdatesEnabled(true)) - m_framework->Invalidate(); + LOG(LINFO, ("Invalidate: [self.view drawView]")); + [(EAGLView *)self.view drawView]; + LOG(LINFO, ("Invalidate: m_framework->SetUpdatesEnabled(true)")); + m_framework->SetUpdatesEnabled(true); + LOG(LINFO, ("Invalidate: done.")); + + // The code below causes very long response time when switching from GuideView to MapView, + // if before there was a long redraw on MapView to GuideView switch. + // + // if (!m_framework->SetUpdatesEnabled(true)) + // m_framework->Invalidate(); + // LOG(LINFO, ("Invalidate done.")); } }