forked from organicmaps/organicmaps
[guides on map] tracking of statistical event Map_Layers_item_selected is fixed
This commit is contained in:
parent
3074f78f5f
commit
ed2ee93182
3 changed files with 12 additions and 3 deletions
|
@ -2575,10 +2575,14 @@ void Framework::OnTapEvent(place_page::BuildInfo const & buildInfo)
|
|||
GetBookmarkManager().UpdateElevationMyPosition(m_currentPlacePageInfo->GetTrackId());
|
||||
}
|
||||
|
||||
if (m_currentPlacePageInfo->IsGuide() && prevIsGuide)
|
||||
if (m_currentPlacePageInfo->IsGuide())
|
||||
{
|
||||
m_guidesManager.OnGuideSelected();
|
||||
return;
|
||||
m_guidesManager.LogGuideSelectedStatistic();
|
||||
if (prevIsGuide)
|
||||
{
|
||||
m_guidesManager.OnGuideSelected();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
ActivateMapSelection(m_currentPlacePageInfo);
|
||||
|
|
|
@ -395,7 +395,10 @@ void GuidesManager::OnGuideSelected()
|
|||
{
|
||||
if (m_onGalleryChanged)
|
||||
m_onGalleryChanged(false /* reload */);
|
||||
}
|
||||
|
||||
void GuidesManager::LogGuideSelectedStatistic()
|
||||
{
|
||||
m_statistics.LogItemSelected(LayersStatistics::LayerItemType::Point);
|
||||
}
|
||||
|
||||
|
|
|
@ -113,6 +113,8 @@ public:
|
|||
void OnClusterSelected(GuidesClusterMark const & mark, ScreenBase const & screen);
|
||||
void OnGuideSelected();
|
||||
|
||||
void LogGuideSelectedStatistic();
|
||||
|
||||
private:
|
||||
void ChangeState(GuidesState newState);
|
||||
void RequestGuides(bool suggestZoom = false);
|
||||
|
|
Loading…
Add table
Reference in a new issue