[core] show PPP when bookmark seleced from bookmark list

This commit is contained in:
ExMix 2014-06-29 15:24:46 +03:00 committed by Alex Zolotarev
parent 55abb6316f
commit 26f201ccdf
3 changed files with 3 additions and 11 deletions

View file

@ -402,8 +402,9 @@ void Framework::ShowBookmark(BookmarkAndCategory const & bnc)
scale = scales::GetUpperComfortScale();
ShowRectExVisibleScale(m_scales.GetRectForDrawScale(scale, bmk->GetOrg()));
m_balloonManager.OnBookmarkClick(bnc);
Bookmark * mark = GetBmCategory(bnc.first)->GetBookmark(bnc.second);
ActivateUserMark(mark);
m_balloonManager.OnShowMark(mark);
}
void Framework::ShowTrack(Track const & track)

View file

@ -32,13 +32,6 @@ void PinClickManager::OnShowMark(UserMark const * mark)
SetBalloonVisible(mark != NULL);
}
void PinClickManager::OnBookmarkClick(BookmarkAndCategory const & bnc)
{
Bookmark * mark = m_f.GetBmCategory(bnc.first)->GetBookmark(bnc.second);
m_f.ActivateUserMark(mark);
SetBalloonVisible(true);
}
void PinClickManager::SetBalloonVisible(bool isVisible)
{
if (!isVisible && m_f.HasActiveUserMark())

View file

@ -30,8 +30,6 @@ public:
void RenderPolicyCreated(graphics::EDensity density) {}
void LocationChanged(location::GpsInfo const & info) {}
void OnBookmarkClick(BookmarkAndCategory const & bnc);
void OnShowMark(UserMark const * mark);
void Hide();